angular2-universal - gulp-prerender
Options
All
  • Public
  • Public/Protected
  • All
Menu

Build Status npm version Join the chat at https://gitter.im/angular/universal Issue Stats Issue Stats

Universal Angular 2

Universal Angular 2

Universal (isomorphic) JavaScript support for Angular 2.

Table of Contents

Getting Started

* NodeJS :: Universal Starter repo

* ASP.NET Core :: Universal Starter repo

Modules

Universal

Manage your application lifecycle and serialize changes while on the server to be sent to the client.

Documentation

Design Doc

Videos

Angular 2 Universal Patterns - ng-conf, May 2016
Angular 2 Universal Patterns

Angular Universal Source Code - ReadTheSource, January 2016
Angular Universal Source Code

Full Stack Angular 2 - AngularConnect, Oct 2015
Full Stack Angular 2

Angular 2 Server Rendering - Angular U, July 2015
Angular 2 Server Rendering

preboot.js

Control server-rendered page and transfer state before client-side web app loads to the client-side-app.

Best Practices

When building Universal components in Angular 2 there are a few things to keep in mind.

Note: Universal currently only works with router-deprecated

  • Know the difference between attributes and properties in relation to the DOM.
  • Don't manipulate the nativeElement directly. Use the Renderer. We do this to ensure that in any environment we're able to change our view.
    constructor(element: ElementRef, renderer: Renderer) {
    renderer.setElementStyle(element.nativeElement, 'font-size', 'x-large');
    }
    
  • Don't use any of the browser types provided in the global namespace such as navigator or document. Anything outside of Angular will not be detected when serializing your application into html. If you need access to these types please consider using DOM from "angular2/src/platform/dom/dom_adapter"
  • Keep your directives stateless as much as possible. For stateful directives, you may need to provide an attribute that reflects the corresponding property with an initial string value such as url in img tag. For our native <img src=""> element the src attribute is reflected as the src property of the element type HTMLImageElement.

What's in a name?

We believe that using the word "universal" is correct when referring to a JavaScript Application that runs in more environments than the browser. (inspired by Universal JavaScript)

License

MIT License

Index

External modules

External modules

"node_modules/angular2-express-engine/index"

"node_modules/angular2-express-engine/index":

"node_modules/angular2-express-engine/src/engine"

"node_modules/angular2-express-engine/src/engine":

ExpressEngineExtraOptions

ExpressEngineExtraOptions:

bootloader

bootloader: any

client

client: boolean

reuseProviders

reuseProviders: boolean

selector

selector: string

serializedCmp

serializedCmp: string

server

server: boolean

ExpressEngineConfig

ExpressEngineConfig: any

EXPRESS_PLATFORM

EXPRESS_PLATFORM: any

bootstrapApp

bootstrapApp: string

bootstrapButton

bootstrapButton: string

cache

cache: object

Type declaration

fs

fs: any

angularScript

  • angularScript(config: any): string
  • Parameters

    • config: any

    Returns string

bootstrapFunction

  • bootstrapFunction(config: any): string
  • Parameters

    • config: any

    Returns string

buildClientScripts

  • buildClientScripts(html: string, options: any): string
  • Parameters

    • html: string
    • options: any

    Returns string

disposeExpressAngularApp

  • disposeExpressAngularApp(): void
  • Returns void

disposeExpressPlatform

  • disposeExpressPlatform(): void
  • Returns void

expressEngine

  • Parameters

    Returns any

ng2Engine

  • Parameters

    Returns any

ng2ExpressEngine

  • Parameters

    Returns any

ng2engine

  • Parameters

    Returns any

prebootScript

  • prebootScript(config: any): string
  • Parameters

    • config: any

    Returns string

simpleReplace

  • Parameters

    Returns void

EXPRESS_ANGULAR_APP

EXPRESS_ANGULAR_APP: object

directives

directives: null

providers

providers: null

template

template: null

"node_modules/angular2-hapi-engine/index"

"node_modules/angular2-hapi-engine/index":

"node_modules/angular2-hapi-engine/src/engine"

"node_modules/angular2-hapi-engine/src/engine":

Runtime

Runtime:

constructor

  • Parameters

    Returns Runtime

bootstrapApp

bootstrapApp: string

bootstrapButton

bootstrapButton: string

options

angularScript

  • angularScript(config: any): string
  • Parameters

    • config: any

    Returns string

bootstrapFunction

  • bootstrapFunction(config: any): string
  • Parameters

    • config: any

    Returns string

buildClientScripts

  • buildClientScripts(html: string, options: any): string
  • Parameters

    • html: string
    • options: any

    Returns string

prebootScript

  • prebootScript(config: any): string
  • Parameters

    • config: any

    Returns string

render

  • render(template: string, context: any, done: Function): void
  • Parameters

    • template: string
    • context: any
    • done: Function

    Returns void

hapiEngine

hapiEngine:

constructor

  • Returns hapiEngine

helpers

helpers: any

partials

partials: any

compile

  • compile(template: any, options: any, next: any): any
  • Parameters

    • template: any
    • options: any
    • next: any

    Returns any

registerHelper

  • registerHelper(name: any, helper: any): void
  • Parameters

    • name: any
    • helper: any

    Returns void

registerPartial

  • registerPartial(name: any, partial: any): void
  • Parameters

    • name: any
    • partial: any

    Returns void

HapiEngineExtraOptions

HapiEngineExtraOptions:

bootloader

bootloader: any

client

client: boolean

reuseProviders

reuseProviders: boolean

selector

selector: string

serializedCmp

serializedCmp: string

server

server: boolean

HapiEngineConfig

HapiEngineConfig: any

HAPI_PLATFORM

HAPI_PLATFORM: any

disposeHapiAngularApp

  • disposeHapiAngularApp(): void
  • Returns void

disposeHapiPlatform

  • disposeHapiPlatform(): void
  • Returns void

HAPI_ANGULAR_APP

HAPI_ANGULAR_APP: object

directives

directives: null

providers

providers: null

template

template: null

"node_modules/angular2-hapi-engine/src/ts-hoek"

"node_modules/angular2-hapi-engine/src/ts-hoek":

applyToDefaults

  • applyToDefaults(defaults: any, options?: any, isNullOverride?: any): any
  • Parameters

    • defaults: any
    • Optional options: any
    • Optional isNullOverride: any

    Returns any

assert

  • assert(condition: any, ...args: Array<any>): void
  • Parameters

    • condition: any
    • Rest ...args: Array<any>

    Returns void

clone

  • clone(obj: any, seen?: any): any
  • Parameters

    • obj: any
    • Optional seen: any

    Returns any

merge

  • merge(target: any, source: any, isNullOverride: any, isMergeArrays: any): any
  • Parameters

    • target: any
    • source: any
    • isNullOverride: any
    • isMergeArrays: any

    Returns any

stringify

  • stringify(...args: Array<any>): any
  • Parameters

    • Rest ...args: Array<any>

    Returns any

"node_modules/angular2-universal-polyfills/src/dev"

"node_modules/angular2-universal-polyfills/src/dev":

"node_modules/angular2-universal-polyfills/src/ie"

"node_modules/angular2-universal-polyfills/src/ie":

"node_modules/angular2-universal-polyfills/src/polyfills-browser"

"node_modules/angular2-universal-polyfills/src/polyfills-browser":

"node_modules/angular2-universal-polyfills/src/polyfills-node"

"node_modules/angular2-universal-polyfills/src/polyfills-node":

"node_modules/angular2-universal-polyfills/src/prod"

"node_modules/angular2-universal-polyfills/src/prod":

"node_modules/angular2-universal-polyfills/src/test"

"node_modules/angular2-universal-polyfills/src/test":

"node_modules/angular2-universal-polyfills/src/zone-browser"

"node_modules/angular2-universal-polyfills/src/zone-browser":

"node_modules/angular2-universal-polyfills/src/zone-node/index"

"node_modules/angular2-universal-polyfills/src/zone-node/index":

"node_modules/angular2-universal/src/browser/bootstrap"

"node_modules/angular2-universal/src/browser/bootstrap":

prebootCompleted

prebootCompleted: boolean

bootstrap

  • Parameters

    • appComponentType: any
    • Default value appProviders: Array<Type | Provider | any | any[]> = null

    Returns Promise<ComponentRef>

prebootComplete

  • prebootComplete(value?: any): any
  • Parameters

    • Optional value: any

    Returns any

"node_modules/angular2-universal/src/browser/browser"

"node_modules/angular2-universal/src/browser/browser":

"node_modules/angular2-universal/src/browser/env"

"node_modules/angular2-universal/src/browser/env":

isBrowser

isBrowser: boolean

isNode

isNode: boolean

"node_modules/angular2-universal/src/browser/http"

"node_modules/angular2-universal/src/browser/http":

BROWSER_HTTP_PROVIDERS

BROWSER_HTTP_PROVIDERS: unknown

BROWSER_JSONP_PROVIDERS

BROWSER_JSONP_PROVIDERS: unknown

"node_modules/angular2-universal/src/browser/index"

"node_modules/angular2-universal/src/browser/index":

"node_modules/angular2-universal/src/browser/ng_preload_cache"

"node_modules/angular2-universal/src/browser/ng_preload_cache":

NgPreloadCacheHttp

NgPreloadCacheHttp:

constructor

_backend

_defaultOptions

_defaultOptions: RequestOptions

prime

prime: boolean

delete

  • Parameters

    • url: string
    • options: any

    Returns Observable<Response> | EventEmitter

get

  • Parameters

    • url: string
    • options: any

    Returns Observable<Response> | EventEmitter

head

  • Parameters

    • url: string
    • options: any

    Returns Observable<Response> | EventEmitter

patch

  • Parameters

    • url: string
    • body: string
    • options: any

    Returns Observable<Response> | EventEmitter

post

  • Parameters

    • url: string
    • body: string
    • options: any

    Returns Observable<Response> | EventEmitter

preload

  • Parameters

    • method: any

    Returns Observable<any> | EventEmitter

put

  • Parameters

    • url: string
    • body: string
    • options: any

    Returns Observable<Response> | EventEmitter

request

  • Parameters

    • url: string
    • options: any

    Returns Observable<Response> | EventEmitter

NG_PRELOAD_CACHE_PROVIDERS

NG_PRELOAD_CACHE_PROVIDERS: Array<any>

"node_modules/angular2-universal/src/browser/platform"

"node_modules/angular2-universal/src/browser/platform":

"node_modules/angular2-universal/src/browser/router"

"node_modules/angular2-universal/src/browser/router":

BROWSER_ROUTER_PROVIDERS

BROWSER_ROUTER_PROVIDERS: unknown

"node_modules/angular2-universal/src/common/cookie"

"node_modules/angular2-universal/src/common/cookie":

Cookie

Cookie:

An abstract class for handling cookies.

get

  • get(key?: string): string
  • Parameters

    • Optional key: string

    Returns string

remove

  • Parameters

    Returns any

set

  • Parameters

    Returns void

toJSON

  • toJSON(): Object
  • Returns Object

CookieAttributes

CookieAttributes:

domain

domain: string

expires

expires: number | Date

path

path: string

secure

secure: boolean

"node_modules/angular2-universal/src/common/http"

"node_modules/angular2-universal/src/common/http":

"node_modules/angular2-universal/src/common/index"

"node_modules/angular2-universal/src/common/index":

"node_modules/angular2-universal/src/common/localStorage"

"node_modules/angular2-universal/src/common/localStorage":

LocalStorage

LocalStorage:

The Storage abstract class of the Web Storage API provides access to local storage for a particular domain.

length

length: number

clear

  • clear(): void
  • Returns void

getItem

  • getItem(): string
  • Returns string

key

  • key(index: number): string
  • Parameters

    • index: number

    Returns string

removeItem

  • removeItem(key: string): void
  • Parameters

    • key: string

    Returns void

setItem

  • setItem(key: string, value: string): void
  • Parameters

    • key: string
    • value: string

    Returns void

toJSON

  • toJSON(): Object
  • Returns Object

"node_modules/angular2-universal/src/common/title"

"node_modules/angular2-universal/src/common/title":

Title

Title:

An abstract service that can be used to get and set the title of a current HTML document.

getTitle

  • getTitle(): string
  • Returns string

setTitle

  • setTitle(title: string): void
  • Parameters

    • title: string

    Returns void

"node_modules/angular2-universal/src/common/tokens/index"

"node_modules/angular2-universal/src/common/tokens/index":

BASE_URL

BASE_URL: OpaqueToken

COOKIE_KEY

COOKIE_KEY: OpaqueToken

ORIGIN_URL

ORIGIN_URL: OpaqueToken

PRIME_CACHE

PRIME_CACHE: OpaqueToken

REQUEST_URL

REQUEST_URL: OpaqueToken

"node_modules/angular2-universal/src/global"

"node_modules/angular2-universal/src/global":

___global

  • ___global(m: any): void
  • Parameters

    • m: any

    Returns void

"node_modules/angular2-universal/src/node/bootloader"

"node_modules/angular2-universal/src/node/bootloader":

Bootloader

Bootloader:

constructor

applicationRef

applicationRef: any

disposed

disposed: boolean

pending

pending: boolean

pendingDisposed

pendingDisposed: boolean

platformRef

platformRef: any

_applicationAll

  • Parameters

    Returns Promise<ConfigRefs>

_async

  • Parameters

    Returns Promise<ConfigRefs>

_bootstrapAll

  • _bootstrapAll(Components?: Array<any>, componentProviders?: Array<any>): Promise<Array<any>>
  • Parameters

    • Optional Components: Array<any>
    • Optional componentProviders: Array<any>

    Returns Promise<Array<any>>

_deprecated

  • _deprecated(config: any): any
  • Parameters

    • config: any

    Returns any

_preboot

  • Parameters

    Returns Promise<ConfigRefs>

application

  • application(document?: any, providers?: any): any
  • Parameters

    • Optional document: any
    • Optional providers: any

    Returns any

bootstrap

  • bootstrap(Component?: any | Array<any>): Promise<any>
  • Parameters

    • Optional Component: any | Array<any>

    Returns Promise<any>

dispose

  • dispose(): void
  • Returns void

document

  • document(document?: string | Object): Object
  • Parameters

    • Default value document: string | Object = null

    Returns Object

platform

  • Parameters

    • Optional providers: any

    Returns PlatformRef

serialize

  • serialize(Component?: any | Array<any>): Promise<any>
  • Parameters

    • Optional Component: any | Array<any>

    Returns Promise<any>

serializeApplication

  • serializeApplication(config?: AppConfig | any, providers?: Array<any>): Promise<any> | any
  • Parameters

    • Optional config: AppConfig | any
    • Optional providers: Array<any>

    Returns Promise<any> | any

applicationRefToString

  • applicationRefToString(applicationRefs: any): string
  • Parameters

    • applicationRefs: any

    Returns string

create

  • Parameters

    • config: any

    Returns Bootloader

parseDocument

  • parseDocument(document: string): Object
  • Parameters

    • document: string

    Returns Object

parseFragment

  • parseFragment(document: string): Object
  • Parameters

    • document: string

    Returns Object

serializeDocument

  • serializeDocument(document: Object): string
  • Parameters

    • document: Object

    Returns string

_config

_config: object

async

async: boolean

preboot

preboot: boolean

AppConfig

AppConfig:

directives

directives: Array<any>

providers

providers: Array<any>

template

template: string

BootloaderConfig

BootloaderConfig:

async

async: boolean

beautify

beautify: boolean

bootloader

bootloader: Bootloader | any

component

component: any

componentProviders

componentProviders: Array<any>

directives

directives: Array<any>

maxZoneTurns

maxZoneTurns: number

ngDoCheck

ngDoCheck: function

Type declaration

ngOnInit

ngOnInit: function

Type declaration

ngOnRendered

ngOnRendered: function

Type declaration

    • (rendered?: string): string | any | Promise<any>
    • Parameters

      • Optional rendered: string

      Returns string | any | Promise<any>

ngOnStable

ngOnStable: function

Type declaration

platformProviders

platformProviders: Array<any>

preboot

preboot: boolean | any

precache

precache: boolean

prime

prime: boolean

primeCache

primeCache: boolean

providers

providers: Array<any>

template

template: string

ConfigRef

ConfigRef: object

Type declaration

ConfigRefs

ConfigRefs: Array<ConfigRef>

DOM

DOM: any

bootloader

  • Parameters

    Returns Bootloader

"node_modules/angular2-universal/src/node/directives/index"

"node_modules/angular2-universal/src/node/directives/index":

NODE_DIRECTIVES

NODE_DIRECTIVES: Array<any>

NODE_FORM_DIRECTIVES

NODE_FORM_DIRECTIVES: Array<any>

NODE_PLATFORM_DIRECTIVES

NODE_PLATFORM_DIRECTIVES: Array<any>

"node_modules/angular2-universal/src/node/directives/node_form"

"node_modules/angular2-universal/src/node/directives/node_form":

NodeForm

NodeForm:

constructor

  • Parameters

    Returns NodeForm

APP_LOCATION

APP_LOCATION: OpaqueToken

CONST_EXPR

  • CONST_EXPR(v: any): any
  • Parameters

    • v: any

    Returns any

"node_modules/angular2-universal/src/node/directives/node_universal_styles"

"node_modules/angular2-universal/src/node/directives/node_universal_styles":

NodeUniversalStyles

NodeUniversalStyles:

constructor

domSharedStylesHost

domSharedStylesHost: DomSharedStylesHost

el

"node_modules/angular2-universal/src/node/env"

"node_modules/angular2-universal/src/node/env":

isBrowser

isBrowser: boolean

isNode

isNode: boolean

"node_modules/angular2-universal/src/node/helper"

"node_modules/angular2-universal/src/node/helper":

directiveResolver

directiveResolver: any

arrayFlattenTree

  • arrayFlattenTree(children: any[], arr: any[]): any[]
  • Parameters

    • children: any[]
    • arr: any[]

    Returns any[]

cssHyphenate

  • cssHyphenate(propertyName: string): string
  • Parameters

    • propertyName: string

    Returns string

escapeRegExp

  • escapeRegExp(str: any): string
  • Parameters

    • str: any

    Returns string

queryParamsToBoolean

  • queryParamsToBoolean(query: any): any
  • Parameters

    • query: any

    Returns any

selectorRegExpFactory

  • selectorRegExpFactory(selector: string): RegExp
  • Parameters

    • selector: string

    Returns RegExp

selectorResolver

  • selectorResolver(componentType: any): string
  • Parameters

    • componentType: any

    Returns string

serverDirectiveResolver

  • serverDirectiveResolver(componentType: any): any
  • Parameters

    • componentType: any

    Returns any

showDebug

  • showDebug(options?: object): string
  • Parameters

    • Default value options: object = {}

    Returns string

stringToBoolean

  • stringToBoolean(txt: any): boolean | string
  • Parameters

    • txt: any

    Returns boolean | string

stringify

  • stringify(obj: any, replacer?: any, spaces?: number): string
  • Parameters

    • obj: any
    • Default value replacer: any = null
    • Default value spaces: number = 2

    Returns string

"node_modules/angular2-universal/src/node/http/index"

"node_modules/angular2-universal/src/node/http/index":

HTTP_PROVIDERS

HTTP_PROVIDERS: Array<any>

NODE_HTTP_PROVIDERS

NODE_HTTP_PROVIDERS: Array<any>

NODE_HTTP_PROVIDERS_COMMON

NODE_HTTP_PROVIDERS_COMMON: Array<any>

NODE_JSONP_PROVIDERS

NODE_JSONP_PROVIDERS: Array<any>

NODE_PRELOAD_CACHE_HTTP_PROVIDERS

NODE_PRELOAD_CACHE_HTTP_PROVIDERS: Array<any>

"node_modules/angular2-universal/src/node/http/node_http"

"node_modules/angular2-universal/src/node/http/node_http":

NodeBackend

NodeBackend:

constructor

  • Parameters

    Returns NodeBackend

_baseResponseOptions

_baseResponseOptions: ResponseOptions

_baseUrl

_baseUrl: string

_ngZone

_ngZone: NgZone

_originUrl

_originUrl: string

createConnection

  • Parameters

    Returns NodeConnection

NodeConnection

NodeConnection:

constructor

  • Parameters

    • req: Request
    • baseResponseOptions: ResponseOptions
    • ngZone: NgZone
    • Default value originUrl: string = ""
    • Optional baseUrl: string
    • Optional cookie: Cookie
    • Optional cookieKey: any

    Returns NodeConnection

readyState

readyState: ReadyState

request

request: Request

response

response: Observable<Response> | Observable<any>

NodeJSONPConnection

NodeJSONPConnection:

constructor

  • Parameters

    Returns NodeJSONPConnection

readyState

readyState: ReadyState

request

request: Request

response

response: Observable<Response> | Observable<any>

NodeJsonpBackend

NodeJsonpBackend:

constructor

  • Parameters

    Returns NodeJsonpBackend

_baseResponseOptions

_baseResponseOptions: ResponseOptions

_baseUrl

_baseUrl: string

_ngZone

_ngZone: NgZone

_originUrl

_originUrl: string

createConnection

  • Parameters

    Returns NodeConnection

JSONP_ERR_WRONG_METHOD

JSONP_ERR_WRONG_METHOD: string

"node_modules/angular2-universal/src/node/http/preload_cache"

"node_modules/angular2-universal/src/node/http/preload_cache":

NgPreloadCacheHttp

NgPreloadCacheHttp:

constructor

_activeNode

_activeNode: any

_async

_async: number

_backend

_callId

_callId: number

_defaultOptions

_defaultOptions: RequestOptions

_ngZone

_ngZone: NgZone

_rootNode

_rootNode: any

prime

prime: boolean

delete

get

head

patch

  • Parameters

    Returns Observable<Response> | EventEmitter

post

  • Parameters

    Returns Observable<Response> | EventEmitter

preload

  • preload(url: any, factory: any): unknown
  • Parameters

    • url: any
    • factory: any

    Returns unknown

put

  • Parameters

    Returns Observable<Response> | EventEmitter

request

NodeXhr

NodeXhr:

constructor

  • new NodeXhr(baseUrl?: string): NodeXhr
  • Parameters

    • Optional baseUrl: string

    Returns NodeXhr

_baseUrl

_baseUrl: string

build

  • build(): XMLHttpRequest
  • Returns XMLHttpRequest

NodeXhrBackend

NodeXhrBackend:

constructor

_baseResponseOptions

_baseResponseOptions: ResponseOptions

_browserXHR

_browserXHR: BrowserXhr

createConnection

  • Parameters

    • request: any

    Returns Connection

NodeXhrConnection

NodeXhrConnection:

constructor

readyState

readyState: ReadyState

request

request: Request

response

response: any

Response EventEmitter which emits a single Response value on load event of XMLHttpRequest.

CONST_EXPR

  • CONST_EXPR(v: any): any
  • Parameters

    • v: any

    Returns any

buildBaseUrl

  • buildBaseUrl(url: string, existing?: boolean): any
  • Parameters

    • url: string
    • Optional existing: boolean

    Returns any

"node_modules/angular2-universal/src/node/index"

"node_modules/angular2-universal/src/node/index":

"node_modules/angular2-universal/src/node/mock/window"

"node_modules/angular2-universal/src/node/mock/window":

methods

methods: Array<string>

readonlyAttributes

readonlyAttributes: Array<string>

replaceableAttributes

replaceableAttributes: Array<any>

unforgeableAttributes

unforgeableAttributes: Array<string>

writableAttributes

writableAttributes: Array<string>

beDefensive

  • beDefensive(win: any, prop: any): any
  • Warn the developer about direct access to Window props

    Parameters

    • win: any
    • prop: any

      The property being accessed

    Returns any

createWindow

  • createWindow(fn?: Function): any
  • Parameters

    • Default value fn: Function = beDefensive

    Returns any

setGlobal

  • setGlobal(win?: any): void
  • Parameters

    • Default value win: any = createWindow()

    Returns void

"node_modules/angular2-universal/src/node/ng_preboot"

"node_modules/angular2-universal/src/node/ng_preboot":

preboot

preboot: "/Users/gctang/js/universal/modules/gulp-prerender/node_modules/preboot/dist/src/node/preboot_node"

createPrebootCode

  • createPrebootCode(componentType: any | Array<any>, prebootConfig?: any): Promise<string>
  • Parameters

    • componentType: any | Array<any>
    • Default value prebootConfig: any = {}

    Returns Promise<string>

createPrebootHTML

  • createPrebootHTML(code: string, config?: any): string
  • Parameters

    • code: string
    • Optional config: any

    Returns string

getPrebootCSS

  • getPrebootCSS(min?: boolean): string
  • Parameters

    • Optional min: boolean

    Returns string

prebootConfigDefault

  • prebootConfigDefault(config?: object): any
  • Parameters

    • Default value config: object = {}

    Returns any

"node_modules/angular2-universal/src/node/node"

"node_modules/angular2-universal/src/node/node":

"node_modules/angular2-universal/src/node/pipes/index"

"node_modules/angular2-universal/src/node/pipes/index":

NODE_PIPES

NODE_PIPES: Array<any>

NODE_PLATFORM_PIPES

NODE_PLATFORM_PIPES: Array<Provider>

"node_modules/angular2-universal/src/node/pipes/node-async-pipe"

"node_modules/angular2-universal/src/node/pipes/node-async-pipe":

NodeAsyncPipe

NodeAsyncPipe:

constructor

_ref

"node_modules/angular2-universal/src/node/platform/document"

"node_modules/angular2-universal/src/node/platform/document":

DOM

DOM: any

parser

parser: unknown

serializer

serializer: unknown

treeAdapter

treeAdapter: unknown

isTag

  • isTag(tagName: any, node: any): boolean
  • Parameters

    • tagName: any
    • node: any

    Returns boolean

parseDocument

  • parseDocument(documentHtml: string): Object
  • Parameters

    • documentHtml: string

    Returns Object

parseFragment

  • parseFragment(el: string): Object
  • Parameters

    • el: string

    Returns Object

serializeDocument

  • serializeDocument(document: Object): string
  • Parameters

    • document: Object

    Returns string

"node_modules/angular2-universal/src/node/platform/dom/node_dom_renderer"

"node_modules/angular2-universal/src/node/platform/dom/node_dom_renderer":

NodeDomRenderer

NodeDomRenderer:

constructor

_setBooleanAttribute

  • _setBooleanAttribute(renderElement: any, propertyName: any, propertyValue: any): unknown
  • Parameters

    • renderElement: any
    • propertyName: any
    • propertyValue: any

    Returns unknown

_setCheckedAttribute

  • _setCheckedAttribute(renderElement: any, propertyName: any, propertyValue: any): unknown
  • Parameters

    • renderElement: any
    • propertyName: any
    • propertyValue: any

    Returns unknown

_setOnOffAttribute

  • _setOnOffAttribute(renderElement: any, propertyName: any, propertyValue: any): unknown
  • Parameters

    • renderElement: any
    • propertyName: any
    • propertyValue: any

    Returns unknown

invokeElementMethod

  • invokeElementMethod(renderElement: any, methodName: string, args: any[]): unknown
  • Parameters

    • renderElement: any
    • methodName: string
    • args: any[]

    Returns unknown

setElementProperty

  • setElementProperty(renderElement: any, propertyName: string, propertyValue: any): unknown
  • Parameters

    • renderElement: any
    • propertyName: string
    • propertyValue: any

    Returns unknown

setElementStyle

  • setElementStyle(renderElement: any, styleName: string, styleValue: string): void
  • Parameters

    • renderElement: any
    • styleName: string
    • styleValue: string

    Returns void

NodeDomRootRenderer_

NodeDomRootRenderer_:

constructor

renderComponent

  • Parameters

    Returns Renderer

DOM

DOM: any

ATTRIBUTES

ATTRIBUTES: object

a

a: Array<string>

button

button: Array<string>

fieldset

fieldset: Array<string>

form

form: Array<string>

img

img: Array<string>

input

input: Array<string>

label

label: Array<string>

optgroup

optgroup: Array<string>

option

option: Array<string>

output

output: Array<string>

progress

progress: Array<string>

script

script: Array<string>

select

select: Array<string>

textarea

textarea: Array<string>

"node_modules/angular2-universal/src/node/platform/index"

"node_modules/angular2-universal/src/node/platform/index":

"node_modules/angular2-universal/src/node/platform/node"

"node_modules/angular2-universal/src/node/platform/node":

DOM

DOM: any

NODE_APP_COMMON_PROVIDERS

NODE_APP_COMMON_PROVIDERS: Array<any>

NODE_APP_PLATFORM

NODE_APP_PLATFORM: Array<any>

NODE_APP_PLATFORM_MARKER

NODE_APP_PLATFORM_MARKER: unknown

NODE_APP_PROVIDERS

NODE_APP_PROVIDERS: Array<any>

isRc0

isRc0: boolean

templateParser

An array of providers that should be passed into application() when bootstrapping a component.

CONST_EXPR

  • CONST_EXPR(v: any): any
  • Parameters

    • v: any

    Returns any

_document

  • _document(): any
  • Returns any

_exceptionHandler

  • Returns ExceptionHandler

bootstrap

  • bootstrap(appComponentType: Type, customAppProviders?: Array<any>, customComponentProviders?: Array<any>): Promise<ComponentRef>
  • Parameters

    • appComponentType: Type
    • Default value customAppProviders: Array<any> = null
    • Default value customComponentProviders: Array<any> = null

    Returns Promise<ComponentRef>

buildNodeAppProviders

  • buildNodeAppProviders(document?: any, providers?: Array<any>): Array<any>
  • Parameters

    • Optional document: any
    • Optional providers: Array<any>

    Returns Array<any>

buildNodePlatformProviders

  • buildNodePlatformProviders(appComponentType: Type, providers?: Array<any>): Array<any>
  • Parameters

    • appComponentType: Type
    • Optional providers: Array<any>

    Returns Array<any>

buildNodeProviders

  • buildNodeProviders(providers?: Array<any>): Array<any>
  • Parameters

    • Optional providers: Array<any>

    Returns Array<any>

buildReflector

  • buildReflector(): void
  • Returns void

initNodeAdapter

  • initNodeAdapter(): void
  • Returns void

"node_modules/angular2-universal/src/node/platform/node_shared_styles_host"

"node_modules/angular2-universal/src/node/platform/node_shared_styles_host":

NodeSharedStylesHost

NodeSharedStylesHost:

constructor

  • Returns NodeSharedStylesHost

_hostNodes

_hostNodes: Set<Node>

_addStylesToHost

  • _addStylesToHost(styles: string[], host: Node): void
  • internal

    Parameters

    • styles: string[]
    • host: Node

    Returns void

addHost

  • addHost(hostNode: Node): void
  • Parameters

    • hostNode: Node

    Returns void

onStylesAdded

  • onStylesAdded(additions: string[]): void
  • Parameters

    • additions: string[]

    Returns void

removeHost

  • removeHost(hostNode: Node): void
  • Parameters

    • hostNode: Node

    Returns void

DOM

DOM: any

"node_modules/angular2-universal/src/node/platform/node_template_parser"

"node_modules/angular2-universal/src/node/platform/node_template_parser":

BoundElementOrDirectiveProperty

BoundElementOrDirectiveProperty:

constructor

expression

expression: AST

isLiteral

isLiteral: boolean

name

name: string

sourceSpan

sourceSpan: ParseSourceSpan

ElementContext

ElementContext:

constructor

  • new ElementContext(isTemplateElement: boolean, _ngContentIndexMatcher: SelectorMatcher, _wildcardNgContentIndex: number, providerContext: ProviderElementContext): ElementContext
  • Parameters

    • isTemplateElement: boolean
    • _ngContentIndexMatcher: SelectorMatcher
    • _wildcardNgContentIndex: number
    • providerContext: ProviderElementContext

    Returns ElementContext

_ngContentIndexMatcher

_ngContentIndexMatcher: SelectorMatcher

_wildcardNgContentIndex

_wildcardNgContentIndex: number

isTemplateElement

isTemplateElement: boolean

providerContext

providerContext: ProviderElementContext

findNgContentIndex

  • Parameters

    Returns number

create

  • Parameters

    • isTemplateElement: boolean
    • directives: DirectiveAst[]
    • providerContext: ProviderElementContext

    Returns ElementContext

ElementOrDirectiveRef

ElementOrDirectiveRef:

constructor

  • Parameters

    Returns ElementOrDirectiveRef

name

name: string

sourceSpan

sourceSpan: ParseSourceSpan

value

value: string

NodeTemplateParser

NodeTemplateParser:

constructor

_console

_console: Console

_exprParser

_exprParser: Parser

_htmlParser

_htmlParser: HtmlParser

_schemaRegistry

_schemaRegistry: ElementSchemaRegistry

transforms

transforms: TemplateAstVisitor[]

parse

tryParse

NonBindableVisitor

NonBindableVisitor:

visitAttr

  • Parameters

    Returns AttrAst

visitComment

  • Parameters

    Returns any

visitElement

visitExpansion

  • visitExpansion(ast: HtmlExpansionAst, context: any): any
  • Parameters

    • ast: HtmlExpansionAst
    • context: any

    Returns any

visitExpansionCase

  • visitExpansionCase(ast: HtmlExpansionCaseAst, context: any): any
  • Parameters

    • ast: HtmlExpansionCaseAst
    • context: any

    Returns any

visitText

PipeCollector

PipeCollector:

pipes

pipes: Set<string>

visitPipe

  • Parameters

    Returns any

TemplateParseVisitor

TemplateParseVisitor:

constructor

_exprParser

_exprParser: Parser

_schemaRegistry

_schemaRegistry: ElementSchemaRegistry

directivesIndex

directivesIndex: Map<unknown, number>

errors

ngContentCount

ngContentCount: number

pipesByName

pipesByName: Map<string, CompilePipeMetadata>

providerViewContext

providerViewContext: ProviderViewContext

selectorMatcher

selectorMatcher: SelectorMatcher

_assertAllEventsPublishedByDirectives

  • Parameters

    Returns void

_assertNoComponentsNorElementBindingsOnTemplate

_assertOnlyOneComponent

  • Parameters

    Returns void

_checkPipes

  • Parameters

    Returns void

_createDirectiveAsts

_createDirectiveHostEventAsts

  • Parameters

    Returns void

_createDirectiveHostPropertyAsts

  • Parameters

    Returns void

_createDirectivePropertyAsts

_createElementPropertyAst

_createElementPropertyAsts

_findComponentDirectiveNames

  • _findComponentDirectiveNames(directives: DirectiveAst[]): string[]
  • Parameters

    Returns string[]

_normalizeAttributeName

  • _normalizeAttributeName(attrName: string): string
  • Parameters

    • attrName: string

    Returns string

_parseAction

  • Parameters

    Returns ASTWithSource

_parseAssignmentEvent

  • _parseAssignmentEvent(name: string, expression: string, sourceSpan: ParseSourceSpan, targetMatchableAttrs: string[], targetEvents: BoundEventAst[]): void
  • Parameters

    Returns void

_parseAttr

_parseBinding

  • Parameters

    Returns ASTWithSource

_parseDirectives

_parseEvent

  • _parseEvent(name: string, expression: string, sourceSpan: ParseSourceSpan, targetMatchableAttrs: string[], targetEvents: BoundEventAst[]): void
  • Parameters

    Returns void

_parseInlineTemplateBinding

_parseInterpolation

  • Parameters

    Returns ASTWithSource

_parseLiteralAttr

_parseProperty

  • Parameters

    Returns void

_parsePropertyAst

_parsePropertyInterpolation

  • Parameters

    Returns boolean

_parseReference

  • Parameters

    Returns void

_parseTemplateBindings

  • Parameters

    Returns TemplateBinding[]

_parseVariable

  • Parameters

    Returns void

_reportError

  • _reportError(message: string, sourceSpan: ParseSourceSpan, level?: ParseErrorLevel): void
  • Parameters

    • message: string
    • sourceSpan: ParseSourceSpan
    • Default value level: ParseErrorLevel = ParseErrorLevel.FATAL

    Returns void

visitAttr

  • Parameters

    Returns any

visitComment

  • Parameters

    Returns any

visitElement

  • Parameters

    Returns any

visitExpansion

  • visitExpansion(ast: HtmlExpansionAst, context: any): any
  • Parameters

    • ast: HtmlExpansionAst
    • context: any

    Returns any

visitExpansionCase

  • visitExpansionCase(ast: HtmlExpansionCaseAst, context: any): any
  • Parameters

    • ast: HtmlExpansionCaseAst
    • context: any

    Returns any

visitText

  • Parameters

    Returns any

ATTRIBUTE_PREFIX

ATTRIBUTE_PREFIX: string

BIND_NAME_REGEXP

BIND_NAME_REGEXP: RegExp

CLASS_ATTR

CLASS_ATTR: string

CLASS_PREFIX

CLASS_PREFIX: string

Console

Console: unknown

EMPTY_ELEMENT_CONTEXT

EMPTY_ELEMENT_CONTEXT: ElementContext

MAX_INTERPOLATION_VALUES

MAX_INTERPOLATION_VALUES: unknown

NON_BINDABLE_VISITOR

NON_BINDABLE_VISITOR: NonBindableVisitor

PROPERTY_PARTS_SEPARATOR

PROPERTY_PARTS_SEPARATOR: string

STYLE_PREFIX

STYLE_PREFIX: string

SecurityContext

SecurityContext: unknown

TEMPLATE_ATTR

TEMPLATE_ATTR: string

TEMPLATE_ATTR_PREFIX

TEMPLATE_ATTR_PREFIX: string

TEMPLATE_ELEMENT

TEMPLATE_ELEMENT: string

TEXT_CSS_SELECTOR

TEXT_CSS_SELECTOR: unknown

createElementCssSelector

  • createElementCssSelector(elementName: string, matchableAttrs: string[]): CssSelector
  • Parameters

    • elementName: string
    • matchableAttrs: string[]

    Returns CssSelector

removeDuplicates

splitClasses

  • splitClasses(classAttrValue: string): string[]
  • Parameters

    • classAttrValue: string

    Returns string[]

"node_modules/angular2-universal/src/node/platform/node_template_parser-rc.0"

"node_modules/angular2-universal/src/node/platform/node_template_parser-rc.0":

BoundElementOrDirectiveProperty

BoundElementOrDirectiveProperty:

constructor

expression

expression: AST

isLiteral

isLiteral: boolean

name

name: string

sourceSpan

sourceSpan: ParseSourceSpan

ElementContext

ElementContext:

constructor

  • new ElementContext(isTemplateElement: boolean, _ngContentIndexMatcher: SelectorMatcher, _wildcardNgContentIndex: number, providerContext: ProviderElementContext): ElementContext
  • Parameters

    • isTemplateElement: boolean
    • _ngContentIndexMatcher: SelectorMatcher
    • _wildcardNgContentIndex: number
    • providerContext: ProviderElementContext

    Returns ElementContext

_ngContentIndexMatcher

_ngContentIndexMatcher: SelectorMatcher

_wildcardNgContentIndex

_wildcardNgContentIndex: number

isTemplateElement

isTemplateElement: boolean

providerContext

providerContext: ProviderElementContext

findNgContentIndex

  • Parameters

    Returns number

create

  • Parameters

    • isTemplateElement: boolean
    • directives: DirectiveAst[]
    • providerContext: ProviderElementContext

    Returns ElementContext

ElementOrDirectiveRef

ElementOrDirectiveRef:

constructor

  • Parameters

    Returns ElementOrDirectiveRef

name

name: string

sourceSpan

sourceSpan: ParseSourceSpan

value

value: string

NodeTemplateParserRc0

NodeTemplateParserRc0:

constructor

_console

_console: Console

_exprParser

_exprParser: Parser

_htmlParser

_htmlParser: HtmlParser

_schemaRegistry

_schemaRegistry: ElementSchemaRegistry

transforms

transforms: TemplateAstVisitor[]

parse

tryParse

NonBindableVisitor

NonBindableVisitor:

visitAttr

  • Parameters

    Returns AttrAst

visitComment

  • Parameters

    Returns any

visitElement

visitExpansion

  • visitExpansion(ast: HtmlExpansionAst, context: any): any
  • Parameters

    • ast: HtmlExpansionAst
    • context: any

    Returns any

visitExpansionCase

  • visitExpansionCase(ast: HtmlExpansionCaseAst, context: any): any
  • Parameters

    • ast: HtmlExpansionCaseAst
    • context: any

    Returns any

visitText

  • Parameters

    Returns TextAst

PipeCollector

PipeCollector:

pipes

pipes: Set<string>

visitPipe

  • Parameters

    Returns any

TemplateParseVisitor

TemplateParseVisitor:

constructor

_exprParser

_exprParser: Parser

_schemaRegistry

_schemaRegistry: ElementSchemaRegistry

directivesIndex

directivesIndex: Map<unknown, number>

errors

ngContentCount

ngContentCount: number

pipesByName

pipesByName: Map<string, CompilePipeMetadata>

providerViewContext

providerViewContext: ProviderViewContext

selectorMatcher

selectorMatcher: SelectorMatcher

_assertAllEventsPublishedByDirectives

  • Parameters

    Returns void

_assertNoComponentsNorElementBindingsOnTemplate

_assertOnlyOneComponent

  • Parameters

    Returns void

_checkPipes

  • Parameters

    Returns void

_createDirectiveAsts

_createDirectiveHostEventAsts

  • Parameters

    Returns void

_createDirectiveHostPropertyAsts

  • Parameters

    Returns void

_createDirectivePropertyAsts

_createElementPropertyAst

  • Parameters

    Returns BoundElementPropertyAst

_createElementPropertyAsts

_findComponentDirectiveNames

  • _findComponentDirectiveNames(directives: DirectiveAst[]): string[]
  • Parameters

    Returns string[]

_normalizeAttributeName

  • _normalizeAttributeName(attrName: string): string
  • Parameters

    • attrName: string

    Returns string

_parseAction

  • Parameters

    Returns ASTWithSource

_parseAssignmentEvent

  • _parseAssignmentEvent(name: string, expression: string, sourceSpan: ParseSourceSpan, targetMatchableAttrs: string[], targetEvents: BoundEventAst[]): void
  • Parameters

    Returns void

_parseAttr

_parseBinding

  • Parameters

    Returns ASTWithSource

_parseDirectives

_parseEvent

  • _parseEvent(name: string, expression: string, sourceSpan: ParseSourceSpan, targetMatchableAttrs: string[], targetEvents: BoundEventAst[]): void
  • Parameters

    Returns void

_parseInlineTemplateBinding

_parseInterpolation

  • Parameters

    Returns ASTWithSource

_parseLiteralAttr

_parseProperty

  • Parameters

    Returns void

_parsePropertyAst

_parsePropertyInterpolation

  • Parameters

    Returns boolean

_parseReference

  • Parameters

    Returns void

_parseTemplateBindings

  • Parameters

    Returns TemplateBinding[]

_parseVariable

  • Parameters

    Returns void

_reportError

  • _reportError(message: string, sourceSpan: ParseSourceSpan, level?: ParseErrorLevel): void
  • Parameters

    • message: string
    • sourceSpan: ParseSourceSpan
    • Default value level: ParseErrorLevel = ParseErrorLevel.FATAL

    Returns void

visitAttr

  • Parameters

    Returns any

visitComment

  • Parameters

    Returns any

visitElement

  • Parameters

    Returns any

visitExpansion

  • visitExpansion(ast: HtmlExpansionAst, context: any): any
  • Parameters

    • ast: HtmlExpansionAst
    • context: any

    Returns any

visitExpansionCase

  • visitExpansionCase(ast: HtmlExpansionCaseAst, context: any): any
  • Parameters

    • ast: HtmlExpansionCaseAst
    • context: any

    Returns any

visitText

  • Parameters

    Returns any

ATTRIBUTE_PREFIX

ATTRIBUTE_PREFIX: string

BIND_NAME_REGEXP

BIND_NAME_REGEXP: RegExp

CLASS_ATTR

CLASS_ATTR: string

CLASS_PREFIX

CLASS_PREFIX: string

Console

Console: unknown

EMPTY_ELEMENT_CONTEXT

EMPTY_ELEMENT_CONTEXT: ElementContext

MAX_INTERPOLATION_VALUES

MAX_INTERPOLATION_VALUES: unknown

NON_BINDABLE_VISITOR

NON_BINDABLE_VISITOR: NonBindableVisitor

PROPERTY_PARTS_SEPARATOR

PROPERTY_PARTS_SEPARATOR: string

STYLE_PREFIX

STYLE_PREFIX: string

SecurityContext

SecurityContext: unknown

TEMPLATE_ATTR

TEMPLATE_ATTR: string

TEMPLATE_ATTR_PREFIX

TEMPLATE_ATTR_PREFIX: string

TEMPLATE_ELEMENT

TEMPLATE_ELEMENT: string

TEXT_CSS_SELECTOR

TEXT_CSS_SELECTOR: unknown

createElementCssSelector

  • createElementCssSelector(elementName: string, matchableAttrs: string[]): CssSelector
  • Parameters

    • elementName: string
    • matchableAttrs: string[]

    Returns CssSelector

removeDuplicates

splitClasses

  • splitClasses(classAttrValue: string): string[]
  • Parameters

    • classAttrValue: string

    Returns string[]

"node_modules/angular2-universal/src/node/platform/node_xhr_impl"

"node_modules/angular2-universal/src/node/platform/node_xhr_impl":

NodeXHRImpl

NodeXHRImpl:

constructor

  • new NodeXHRImpl(ngZone: NgZone, _originUrl?: string, _baseUrl?: string): NodeXHRImpl
  • Parameters

    • ngZone: NgZone
    • Default value _originUrl: string = ""
    • Optional _baseUrl: string

    Returns NodeXHRImpl

_baseUrl

_baseUrl: string

_originUrl

_originUrl: string

ngZone

ngZone: NgZone

get

  • get(templateUrl: string): Promise<string>
  • Parameters

    • templateUrl: string

    Returns Promise<string>

"node_modules/angular2-universal/src/node/render"

"node_modules/angular2-universal/src/node/render":

appRefSyncRender

  • appRefSyncRender(appRef: any): string
  • Parameters

    • appRef: any

    Returns string

applicationToString

  • Parameters

    Returns string

renderDocument

  • renderDocument(documentHtml: string, componentType: Type, nodeProviders?: any): Promise<string>
  • Parameters

    • documentHtml: string
    • componentType: Type
    • Optional nodeProviders: any

    Returns Promise<string>

renderDocumentWithPreboot

  • renderDocumentWithPreboot(documentHtml: string, componentType: Type, nodeProviders?: any, prebootConfig?: any): Promise<string>
  • Parameters

    • documentHtml: string
    • componentType: Type
    • Optional nodeProviders: any
    • Default value prebootConfig: any = {}

    Returns Promise<string>

renderToString

  • renderToString(componentType: any, nodeProviders?: any): Promise<string>
  • Parameters

    • componentType: any
    • Optional nodeProviders: any

    Returns Promise<string>

renderToStringWithPreboot

  • renderToStringWithPreboot(componentType: any, nodeProviders?: any, prebootConfig?: any): Promise<string>
  • Parameters

    • componentType: any
    • Optional nodeProviders: any
    • Default value prebootConfig: any = {}

    Returns Promise<string>

serializeApplication

  • serializeApplication(element: any, styles: string[], cache?: any): string
  • Parameters

    • element: any
    • styles: string[]
    • Optional cache: any

    Returns string

waitRouter

  • Parameters

    Returns Promise<ComponentRef>

"node_modules/angular2-universal/src/node/router/index"

"node_modules/angular2-universal/src/node/router/index":

NODE_LOCATION_PROVIDERS

NODE_LOCATION_PROVIDERS: Array<any>

NODE_ROUTER_PROVIDERS

NODE_ROUTER_PROVIDERS: Array<any>

"node_modules/angular2-universal/src/node/router/node_platform_location"

"node_modules/angular2-universal/src/node/router/node_platform_location":

NodeLocation

NodeLocation:

constructor

  • new NodeLocation(config: NodeLocationConfig & LocationConfig): NodeLocation
  • Parameters

    • config: NodeLocationConfig & LocationConfig

    Returns NodeLocation

hash

hash: string

host

host: string

hostname

hostname: string

href

href: string

pathname

pathname: string

port

port: string

protocol

protocol: string

search

search: string

origin

origin:

assign

  • Parameters

    Returns

format

  • Parameters

    Returns string

parse

  • parse(url: string): Url
  • Parameters

    • url: string

    Returns Url

NodePlatformLocation

NodePlatformLocation:

constructor

  • new NodePlatformLocation(originUrl: string, requestUrl: string, baseUrl?: string): NodePlatformLocation
  • Parameters

    • originUrl: string
    • requestUrl: string
    • Optional baseUrl: string

    Returns NodePlatformLocation

_baseUrl

_baseUrl: string

_loc

_originUrl

_originUrl: string

_popStateListeners

_popStateListeners: Array<Function>

_stack

_stack: Array<State>

_stackIndex

_stackIndex: number

hash

hash:

pathname

pathname:

search

search:

_callPopStateListeners

  • _callPopStateListeners(): void
  • Returns void

_setLocationByUrl

  • _setLocationByUrl(url: string): void
  • Parameters

    • url: string

    Returns void

_updateLocation

  • _updateLocation(): void
  • Returns void

back

  • back(): void
  • Returns void

forward

  • forward(): void
  • Returns void

getBaseHref

  • getBaseHref(): string
  • Returns string

getBaseHrefFromDOM

  • getBaseHrefFromDOM(): string
  • Returns string

onHashChange

  • onHashChange(fn: any): void
  • Parameters

    • fn: any

    Returns void

onPopState

  • onPopState(fn: any): void
  • Parameters

    • fn: any

    Returns void

path

  • path(): string
  • Returns string

prepareExternalUrl

  • prepareExternalUrl(internal: string): string
  • Parameters

    • internal: string

    Returns string

pushState

  • pushState(state: any, title: string, url: string): void
  • Parameters

    • state: any
    • title: string
    • url: string

    Returns void

replaceState

  • replaceState(state: any, title: string, url: string): void
  • Parameters

    • state: any
    • title: string
    • url: string

    Returns void

toJSON

  • toJSON(): any
  • Returns any

PopStateEvent

PopStateEvent:

constructor

  • Parameters

    • state: any

    Returns PopStateEvent

state

state: any

type

type: string

toJSON

  • toJSON(): object
  • Returns object

    • state: any

State

State:

constructor

  • new State(state: any, title: string, url: string): State
  • Parameters

    • state: any
    • title: string
    • url: string

    Returns State

state

state: any

title

title: string

url

url: string

toJSON

  • toJSON(): object
  • Returns object

    • state: any
    • title: string
    • url: string

LocationConfig

LocationConfig:

hash

hash: string

pathname

pathname: string

search

search: string

NodeLocationConfig

NodeLocationConfig:

hash

hash: string

host

host: string

hostname

hostname: string

href

href: string

pathname

pathname: string

port

port: string

protocol

protocol: string

search

search: string

joinWithSlash

  • joinWithSlash(start: string, end: string): string
  • Parameters

    • start: string
    • end: string

    Returns string

config

config: object

hash

hash: any

host

host: any

hostname

hostname: any

href

href: any

pathname

pathname: any

port

port: any

protocol

protocol: any

search

search: any

"node_modules/angular2-universal/src/node/stringify_element"

"node_modules/angular2-universal/src/node/stringify_element":

DOM

DOM: any

_singleTagWhitelist

_singleTagWhitelist: Array<string>

stringifyElement

  • stringifyElement(el: any): string
  • Parameters

    • el: any

    Returns string

"node_modules/angular2-universal/src/node/test/router/node_platform_location.spec"

"node_modules/angular2-universal/src/node/test/router/node_platform_location.spec":

jasmine

jasmine: any

back

  • Parameters

    Returns void

expectProperties

  • Parameters

    Returns void

forward

  • Parameters

    Returns void

normalizeProperties

  • normalizeProperties(__namedParameters: object): object
  • Parameters

    • __namedParameters: object
      • hash: any
      • pathname: any
      • search: any

    Returns object

    • hash: any
    • pathname: any
    • search: any

"node_modules/angular2-universal/src/polyfills"

"node_modules/angular2-universal/src/polyfills":

"node_modules/angular2-universal/src/typings"

"node_modules/angular2-universal/src/typings":

"node_modules/angular2/ts/animate"

"node_modules/angular2/ts/animate":

"node_modules/angular2/ts/animate/testing"

"node_modules/angular2/ts/animate/testing":

"node_modules/angular2/ts/bootstrap"

"node_modules/angular2/ts/bootstrap":

"node_modules/angular2/ts/bootstrap_static"

"node_modules/angular2/ts/bootstrap_static":

"node_modules/angular2/ts/common"

"node_modules/angular2/ts/common":

"node_modules/angular2/ts/compiler"

"node_modules/angular2/ts/compiler":

"node_modules/angular2/ts/core"

"node_modules/angular2/ts/core":

"node_modules/angular2/ts/examples/common/forms/ts/validators/validators"

"node_modules/angular2/ts/examples/common/forms/ts/validators/validators":

MaxLengthTestComponent

MaxLengthTestComponent:

MinLengthTestComponent

MinLengthTestComponent:

"node_modules/angular2/ts/examples/compiler/ts/url_resolver/url_resolver"

"node_modules/angular2/ts/examples/compiler/ts/url_resolver/url_resolver":

MyUrlResolver

MyUrlResolver:

constructor

  • Parameters

    • Optional packagePrefix: string

    Returns MyUrlResolver

resolve

  • resolve(baseUrl: string, url: string): string
  • Parameters

    • baseUrl: string
    • url: string

    Returns string

MyApp

MyApp: any

"node_modules/angular2/ts/examples/core/debug/ts/debug_element/debug_element"

"node_modules/angular2/ts/examples/core/debug/ts/debug_element/debug_element":

debugElement

debugElement: DebugElement

predicate

predicate: any

"node_modules/angular2/ts/examples/core/di/ts/forward_ref/forward_ref"

"node_modules/angular2/ts/examples/core/di/ts/forward_ref/forward_ref":

Door

Door:

constructor

  • Parameters

    Returns Door

lock

lock: Lock

Lock

Lock:

door

door: any

injector

injector: Injector

ref

ref: Type

"node_modules/angular2/ts/examples/core/forms/ts/ng_validators/ng_validators"

"node_modules/angular2/ts/examples/core/forms/ts/ng_validators/ng_validators":

MyApp

MyApp: Function

myValidator

myValidator: any

"node_modules/angular2/ts/examples/core/pipes/ts/async_pipe/async_pipe_example"

"node_modules/angular2/ts/examples/core/pipes/ts/async_pipe/async_pipe_example":

AppCmp

AppCmp:

AsyncPipeExample

AsyncPipeExample:

constructor

  • Returns AsyncPipeExample

arrived

arrived: boolean

greeting

greeting: Promise<string>

resolve

resolve: Function

clicked

  • clicked(): void
  • Returns void

reset

  • reset(): void
  • Returns void

Task

Task:

time

time: Observable<number>

main

  • main(): void
  • Returns void

"node_modules/angular2/ts/examples/core/pipes/ts/date_pipe/date_pipe_example"

"node_modules/angular2/ts/examples/core/pipes/ts/date_pipe/date_pipe_example":

AppCmp

AppCmp:

DatePipeExample

DatePipeExample:

today

today: number

main

  • main(): void
  • Returns void

"node_modules/angular2/ts/examples/core/pipes/ts/json_pipe/json_pipe_example"

"node_modules/angular2/ts/examples/core/pipes/ts/json_pipe/json_pipe_example":

AppCmp

AppCmp:

JsonPipeExample

JsonPipeExample:

object

object: object

baz

baz: string

foo

foo: string

nested

nested: object

numbers

numbers: Array<number>

xyz

xyz: number

main

  • main(): void
  • Returns void

"node_modules/angular2/ts/examples/core/pipes/ts/lowerupper_pipe/lowerupper_pipe_example"

"node_modules/angular2/ts/examples/core/pipes/ts/lowerupper_pipe/lowerupper_pipe_example":

AppCmp

AppCmp:

LowerUpperPipeExample

LowerUpperPipeExample:

value

value: string

change

  • change(value: string): void
  • Parameters

    • value: string

    Returns void

main

  • main(): void
  • Returns void

"node_modules/angular2/ts/examples/core/pipes/ts/number_pipe/number_pipe_example"

"node_modules/angular2/ts/examples/core/pipes/ts/number_pipe/number_pipe_example":

AppCmp

AppCmp:

CurrencyPipeExample

CurrencyPipeExample:

a

a: number

b

b: number

NumberPipeExample

NumberPipeExample:

e

e: number

pi

pi: number

PercentPipeExample

PercentPipeExample:

a

a: number

b

b: number

main

  • main(): void
  • Returns void

"node_modules/angular2/ts/examples/core/pipes/ts/slice_pipe/slice_pipe_example"

"node_modules/angular2/ts/examples/core/pipes/ts/slice_pipe/slice_pipe_example":

AppCmp

AppCmp:

SlicePipeListExample

SlicePipeListExample:

collection

collection: string[]

SlicePipeStringExample

SlicePipeStringExample:

str

str: string

main

  • main(): void
  • Returns void

"node_modules/angular2/ts/examples/core/ts/bootstrap/bootstrap"

"node_modules/angular2/ts/examples/core/ts/bootstrap/bootstrap":

MyApp

MyApp:

name

name: string

main

  • main(): Promise<ComponentRef>
  • Returns Promise<ComponentRef>

"node_modules/angular2/ts/examples/core/ts/metadata/metadata"

"node_modules/angular2/ts/examples/core/ts/metadata/metadata":

Greet

Greet:

name

name: string

InputAttrDirective

InputAttrDirective:

constructor

  • Parameters

    • type: string

    Returns InputAttrDirective

InputDirective

InputDirective:

constructor

  • Returns InputDirective

Lowercase

Lowercase:

transform

  • transform(v: string, args: any[]): string
  • Parameters

    • v: string
    • args: any[]

    Returns string

Page

Page:

constructor

  • new Page(title: string): Page
  • Parameters

    • title: string

    Returns Page

title

title: string

CustomDirective

CustomDirective: Function

"node_modules/angular2/ts/examples/core/ts/platform/platform"

"node_modules/angular2/ts/examples/core/ts/platform/platform":

MyApp

MyApp:

app

app: ApplicationRef

appProviders

appProviders: any[]

"node_modules/angular2/ts/examples/core/ts/prod_mode/my_component"

"node_modules/angular2/ts/examples/core/ts/prod_mode/my_component":

MyComponent

MyComponent:

"node_modules/angular2/ts/examples/core/ts/prod_mode/prod_mode_example"

"node_modules/angular2/ts/examples/core/ts/prod_mode/prod_mode_example":

"node_modules/angular2/ts/examples/facade/ts/async/observable"

"node_modules/angular2/ts/examples/facade/ts/async/observable":

obs

obs: Observable<number>

"node_modules/angular2/ts/examples/facade/ts/async/observable_all"

"node_modules/angular2/ts/examples/facade/ts/async/observable_all":

"node_modules/angular2/ts/examples/facade/ts/async/observable_patched"

"node_modules/angular2/ts/examples/facade/ts/async/observable_patched":

obs

obs: Observable<number>

"node_modules/angular2/ts/examples/facade/ts/async/observable_pure"

"node_modules/angular2/ts/examples/facade/ts/async/observable_pure":

obs

obs: Observable<number>

"node_modules/angular2/ts/examples/platform/dom/debug/ts/by/by"

"node_modules/angular2/ts/examples/platform/dom/debug/ts/by/by":

MyDirective

MyDirective:

debugElement

debugElement: DebugElement

"node_modules/angular2/ts/examples/platform/dom/debug/ts/debug_element_view_listener/providers"

"node_modules/angular2/ts/examples/platform/dom/debug/ts/debug_element_view_listener/providers":

MyAppComponent

MyAppComponent:

"node_modules/angular2/ts/examples/router/ts/can_activate/can_activate_example"

"node_modules/angular2/ts/examples/router/ts/can_activate/can_activate_example":

AppCmp

AppCmp:

ControlPanelCmp

ControlPanelCmp:

HomeCmp

HomeCmp:

checkIfWeHavePermission

  • checkIfWeHavePermission(instruction: ComponentInstruction): boolean
  • Parameters

    • instruction: ComponentInstruction

    Returns boolean

main

  • main(): Promise<ComponentRef>
  • Returns Promise<ComponentRef>

"node_modules/angular2/ts/examples/router/ts/can_activate/can_activate_spec"

"node_modules/angular2/ts/examples/router/ts/can_activate/can_activate_spec":

waitForElement

  • waitForElement(selector: string): void
  • Parameters

    • selector: string

    Returns void

"node_modules/angular2/ts/examples/router/ts/can_deactivate/can_deactivate_example"

"node_modules/angular2/ts/examples/router/ts/can_deactivate/can_deactivate_example":

AppCmp

AppCmp:

NoteCmp

NoteCmp:

constructor

  • new NoteCmp(params: RouteParams): NoteCmp
  • Parameters

    • params: RouteParams

    Returns NoteCmp

id

id: string

routerCanDeactivate

  • routerCanDeactivate(next: ComponentInstruction, prev: ComponentInstruction): boolean
  • Parameters

    • next: ComponentInstruction
    • prev: ComponentInstruction

    Returns boolean

NoteIndexCmp

NoteIndexCmp:

main

  • main(): Promise<ComponentRef>
  • Returns Promise<ComponentRef>

"node_modules/angular2/ts/examples/router/ts/can_deactivate/can_deactivate_spec"

"node_modules/angular2/ts/examples/router/ts/can_deactivate/can_deactivate_spec":

waitForAlert

  • waitForAlert(): void
  • Returns void

waitForElement

  • waitForElement(selector: string): void
  • Parameters

    • selector: string

    Returns void

"node_modules/angular2/ts/examples/router/ts/on_activate/on_activate_example"

"node_modules/angular2/ts/examples/router/ts/on_activate/on_activate_example":

AppCmp

AppCmp:

ChildCmp

ChildCmp:

ParentCmp

ParentCmp:

log

log: string

routerOnActivate

  • routerOnActivate(next: ComponentInstruction, prev: ComponentInstruction): Promise<Object>
  • Parameters

    • next: ComponentInstruction
    • prev: ComponentInstruction

    Returns Promise<Object>

main

  • main(): Promise<ComponentRef>
  • Returns Promise<ComponentRef>

"node_modules/angular2/ts/examples/router/ts/on_deactivate/on_deactivate_example"

"node_modules/angular2/ts/examples/router/ts/on_deactivate/on_deactivate_example":

AppCmp

AppCmp:

constructor

  • Parameters

    Returns AppCmp

logService

logService: LogService

LogService

LogService:

logs

logs: string[]

addLog

  • addLog(message: string): void
  • Parameters

    • message: string

    Returns void

MyCmp

MyCmp:

constructor

  • Parameters

    Returns MyCmp

logService

logService: LogService

routerOnDeactivate

  • routerOnDeactivate(next: ComponentInstruction, prev: ComponentInstruction): void
  • Parameters

    • next: ComponentInstruction
    • prev: ComponentInstruction

    Returns void

main

  • main(): Promise<ComponentRef>
  • Returns Promise<ComponentRef>

"node_modules/angular2/ts/examples/router/ts/on_deactivate/on_deactivate_spec"

"node_modules/angular2/ts/examples/router/ts/on_deactivate/on_deactivate_spec":

waitForElement

  • waitForElement(selector: string): void
  • Parameters

    • selector: string

    Returns void

"node_modules/angular2/ts/examples/router/ts/reuse/reuse_example"

"node_modules/angular2/ts/examples/router/ts/reuse/reuse_example":

AppCmp

AppCmp:

MyCmp

MyCmp:

constructor

  • new MyCmp(params: RouteParams): MyCmp
  • Parameters

    • params: RouteParams

    Returns MyCmp

name

name: string

routerCanReuse

  • routerCanReuse(next: ComponentInstruction, prev: ComponentInstruction): boolean
  • Parameters

    • next: ComponentInstruction
    • prev: ComponentInstruction

    Returns boolean

routerOnReuse

  • routerOnReuse(next: ComponentInstruction, prev: ComponentInstruction): void
  • Parameters

    • next: ComponentInstruction
    • prev: ComponentInstruction

    Returns void

main

  • main(): Promise<ComponentRef>
  • Returns Promise<ComponentRef>

"node_modules/angular2/ts/examples/router/ts/reuse/reuse_spec"

"node_modules/angular2/ts/examples/router/ts/reuse/reuse_spec":

waitForElement

  • waitForElement(selector: string): void
  • Parameters

    • selector: string

    Returns void

"node_modules/angular2/ts/examples/testing/ts/fake_async"

"node_modules/angular2/ts/examples/testing/ts/fake_async":

"node_modules/angular2/ts/examples/testing/ts/matchers"

"node_modules/angular2/ts/examples/testing/ts/matchers":

OtherClass

OtherClass:

SomeClass

SomeClass:

element

element: any

exception

exception: any

value

value: any

"node_modules/angular2/ts/examples/testing/ts/testing"

"node_modules/angular2/ts/examples/testing/ts/testing":

MyMockService

MyMockService:

MyService

MyService:

db

db: any

"node_modules/angular2/ts/http"

"node_modules/angular2/ts/http":

HTTP_BINDINGS

HTTP_BINDINGS: Array<any>

See HTTP_PROVIDERS instead.

deprecated

HTTP_PROVIDERS

HTTP_PROVIDERS: any[]

Provides a basic set of injectables to use the Http service in any application.

The HTTP_PROVIDERS should be included either in a component's injector, or in the root injector when bootstrapping an application.

Example (live demo)

``` import {Component} from 'angular2/core'; import {bootstrap} from 'angular2/platform/browser'; import {NgFor} from 'angular2/common'; import {HTTP_PROVIDERS, Http} from 'angular2/http';

component

({ selector: 'app', providers: [HTTP_PROVIDERS], template: <div> <h1>People</h1> <ul> <li *ngFor="#person of people"> {{person.name}} </li> </ul> </div>, directives: [NgFor] }) export class App { people: Object[]; constructor(http:Http) { http.get('people.json').subscribe(res => { this.people = res.json(); }); } active:boolean = false; toggleActiveState() { this.active = !this.active; } }

bootstrap(App) .catch(err => console.error(err));


The primary public API included in `HTTP_PROVIDERS` is the <a href="index.html#_node_modules_angular2_ts_src_http_http_.http">Http</a> class.
However, other providers required by `Http` are included,
which may be beneficial to override in certain cases.

The providers included in `HTTP_PROVIDERS` include:
 * <a href="index.html#_node_modules_angular2_ts_src_http_http_.http">Http</a>
 * <a href="index.html#_node_modules_angular2_ts_src_http_backends_xhr_backend_.xhrbackend">XHRBackend</a>
 * `BrowserXHR` - Private factory to create `XMLHttpRequest` instances
 * <a href="index.html#_node_modules_angular2_ts_src_http_base_request_options_.requestoptions">RequestOptions</a> - Bound to <a href="index.html#_node_modules_angular2_ts_src_http_base_request_options_.baserequestoptions">BaseRequestOptions</a> class
 * <a href="index.html#_node_modules_angular2_ts_src_http_base_response_options_.responseoptions">ResponseOptions</a> - Bound to <a href="index.html#_node_modules_angular2_ts_src_http_base_response_options_.baseresponseoptions">BaseResponseOptions</a> class

There may be cases where it makes sense to extend the base request options,
such as to add a search string to be appended to all URLs.
To accomplish this, a new provider for <a href="index.html#_node_modules_angular2_ts_src_http_base_request_options_.requestoptions">RequestOptions</a> should
be added in the same injector as `HTTP_PROVIDERS`.

### Example ([live demo](http://plnkr.co/edit/aCMEXi?p=preview))

import {provide} from 'angular2/core'; import {bootstrap} from 'angular2/platform/browser'; import {HTTP_PROVIDERS, BaseRequestOptions, RequestOptions} from 'angular2/http';

class MyOptions extends BaseRequestOptions { search: string = 'coreTeam=true'; }

bootstrap(App, [HTTP_PROVIDERS, provide(RequestOptions, {useClass: MyOptions})]) .catch(err => console.error(err));


Likewise, to use a mock backend for unit tests, the <a href="index.html#_node_modules_angular2_ts_src_http_backends_xhr_backend_.xhrbackend">XHRBackend</a>
provider should be bound to <a href="index.html#_node_modules_angular2_ts_src_http_backends_mock_backend_.mockbackend">MockBackend</a>.

### Example ([live demo](http://plnkr.co/edit/7LWALD?p=preview))

import {provide} from 'angular2/core'; import {bootstrap} from 'angular2/platform/browser'; import {HTTP_PROVIDERS, Http, Response, XHRBackend} from 'angular2/http'; import {MockBackend} from 'angular2/http/testing';

var people = [{name: 'Jeff'}, {name: 'Tobias'}];

var injector = Injector.resolveAndCreate([ HTTP_PROVIDERS, MockBackend, provide(XHRBackend, {useExisting: MockBackend}) ]); var http = injector.get(Http); var backend = injector.get(MockBackend);

// Listen for any new requests backend.connections.observer({ next: connection => { var response = new Response({body: people}); setTimeout(() => { // Send a response to the request connection.mockRespond(response); }); } });

http.get('people.json').observer({ next: res => { // Response came from mock backend console.log('first person', res.json()[0].name); } }); ```

JSONP_PROVIDERS

JSONP_PROVIDERS: any[]

Provides a basic set of providers to use the Jsonp service in any application.

The JSONP_PROVIDERS should be included either in a component's injector, or in the root injector when bootstrapping an application.

Example (live demo)

``` import {Component} from 'angular2/core'; import {NgFor} from 'angular2/common'; import {JSONP_PROVIDERS, Jsonp} from 'angular2/http';

component

({ selector: 'app', providers: [JSONP_PROVIDERS], template: <div> <h1>People</h1> <ul> <li *ngFor="#person of people"> {{person.name}} </li> </ul> </div>, directives: [NgFor] }) export class App { people: Array; constructor(jsonp:Jsonp) { jsonp.request('people.json').subscribe(res => { this.people = res.json(); }) } }


The primary public API included in `JSONP_PROVIDERS` is the <a href="index.html#_node_modules_angular2_ts_src_http_http_.jsonp">Jsonp</a> class.
However, other providers required by `Jsonp` are included,
which may be beneficial to override in certain cases.

The providers included in `JSONP_PROVIDERS` include:
 * <a href="index.html#_node_modules_angular2_ts_src_http_http_.jsonp">Jsonp</a>
 * <a href="index.html#_node_modules_angular2_ts_src_http_backends_jsonp_backend_.jsonpbackend">JSONPBackend</a>
 * `BrowserJsonp` - Private factory
 * <a href="index.html#_node_modules_angular2_ts_src_http_base_request_options_.requestoptions">RequestOptions</a> - Bound to <a href="index.html#_node_modules_angular2_ts_src_http_base_request_options_.baserequestoptions">BaseRequestOptions</a> class
 * <a href="index.html#_node_modules_angular2_ts_src_http_base_response_options_.responseoptions">ResponseOptions</a> - Bound to <a href="index.html#_node_modules_angular2_ts_src_http_base_response_options_.baseresponseoptions">BaseResponseOptions</a> class

There may be cases where it makes sense to extend the base request options,
such as to add a search string to be appended to all URLs.
To accomplish this, a new provider for <a href="index.html#_node_modules_angular2_ts_src_http_base_request_options_.requestoptions">RequestOptions</a> should
be added in the same injector as `JSONP_PROVIDERS`.

### Example ([live demo](http://plnkr.co/edit/TFug7x?p=preview))

import {provide} from 'angular2/core'; import {bootstrap} from 'angular2/platform/browser'; import {JSONP_PROVIDERS, BaseRequestOptions, RequestOptions} from 'angular2/http';

class MyOptions extends BaseRequestOptions { search: string = 'coreTeam=true'; }

bootstrap(App, [JSONP_PROVIDERS, provide(RequestOptions, {useClass: MyOptions})]) .catch(err => console.error(err));


Likewise, to use a mock backend for unit tests, the <a href="index.html#_node_modules_angular2_ts_src_http_backends_jsonp_backend_.jsonpbackend">JSONPBackend</a>
provider should be bound to <a href="index.html#_node_modules_angular2_ts_src_http_backends_mock_backend_.mockbackend">MockBackend</a>.

### Example ([live demo](http://plnkr.co/edit/HDqZWL?p=preview))

import {provide, Injector} from 'angular2/core'; import {JSONP_PROVIDERS, Jsonp, Response, JSONPBackend} from 'angular2/http'; import {MockBackend} from 'angular2/http/testing';

var people = [{name: 'Jeff'}, {name: 'Tobias'}]; var injector = Injector.resolveAndCreate([ JSONP_PROVIDERS, MockBackend, provide(JSONPBackend, {useExisting: MockBackend}) ]); var jsonp = injector.get(Jsonp); var backend = injector.get(MockBackend);

// Listen for any new requests backend.connections.observer({ next: connection => { var response = new Response({body: people}); setTimeout(() => { // Send a response to the request connection.mockRespond(response); }); } });

jsonp.get('people.json').observer({ next: res => { // Response came from mock backend console.log('first person', res.json()[0].name); } }); ```

JSON_BINDINGS

JSON_BINDINGS: Array<any>

See JSONP_PROVIDERS instead.

deprecated

"node_modules/angular2/ts/http/testing"

"node_modules/angular2/ts/http/testing":

"node_modules/angular2/ts/i18n"

"node_modules/angular2/ts/i18n":

"node_modules/angular2/ts/instrumentation"

"node_modules/angular2/ts/instrumentation":

"node_modules/angular2/ts/platform/browser"

"node_modules/angular2/ts/platform/browser":

BROWSER_APP_PROVIDERS

BROWSER_APP_PROVIDERS: Array<any>

An array of providers that should be passed into application() when bootstrapping a component.

bootstrap

  • bootstrap(appComponentType: Type, customProviders?: Array<any>): Promise<ComponentRef>
  • Bootstrapping for Angular applications.

    You instantiate an Angular application by explicitly specifying a component to use as the root component for your application via the bootstrap() method.

    Simple Example

    Assuming this index.html:

    <html>
      <!-- load Angular script tags here. -->
      <body>
        <my-app>loading...</my-app>
      </body>
    </html>
    

    An application is bootstrapped inside an existing browser DOM, typically index.html. Unlike Angular 1, Angular 2 does not compile/process providers in index.html. This is mainly for security reasons, as well as architectural changes in Angular 2. This means that index.html can safely be processed using server-side technologies such as providers. Bindings can thus use double-curly {{ syntax }} without collision from Angular 2 component double-curly {{ syntax }}.

    We can use this script code:

    {@example core/ts/bootstrap/bootstrap.ts region='bootstrap'}

    When the app developer invokes bootstrap() with the root component MyApp as its argument, Angular performs the following tasks:

    1. It uses the component's selector property to locate the DOM element which needs to be upgraded into the angular component.
    2. It creates a new child injector (from the platform injector). Optionally, you can also override the injector configuration for an app by invoking bootstrap with the componentInjectableBindings argument.
    3. It creates a new Zone and connects it to the angular application's change detection domain instance.
    4. It creates an emulated or shadow DOM on the selected component's host element and loads the template into it.
    5. It instantiates the specified component.
    6. Finally, Angular performs change detection to apply the initial data providers for the application.

    Bootstrapping Multiple Applications

    When working within a browser window, there are many singleton resources: cookies, title, location, and others. Angular services that represent these resources must likewise be shared across all Angular applications that occupy the same browser window. For this reason, Angular creates exactly one global platform object which stores all shared services, and each angular application injector has the platform injector as its parent.

    Each application has its own private injector as well. When there are multiple applications on a page, Angular treats each application injector's services as private to that application.

    API

    • appComponentType: The root component which should act as the application. This is a reference to a Type which is annotated with @Component(...).
    • customProviders: An additional set of providers that can be added to the app injector to override default injection behavior.

    Returns a Promise of ComponentRef.

    Parameters

    • appComponentType: Type
    • Optional customProviders: Array<any>

    Returns Promise<ComponentRef>

"node_modules/angular2/ts/platform/browser_static"

"node_modules/angular2/ts/platform/browser_static":

BROWSER_APP_PROVIDERS

BROWSER_APP_PROVIDERS: Array<any>

An array of providers that should be passed into application() when bootstrapping a component when all templates have been precompiled offline.

bootstrapStatic

  • bootstrapStatic(appComponentType: Type, customProviders?: Array<any>, initReflector?: Function): Promise<ComponentRef>
  • See bootstrap for more information.

    Parameters

    • appComponentType: Type
    • Optional customProviders: Array<any>
    • Optional initReflector: Function

    Returns Promise<ComponentRef>

"node_modules/angular2/ts/platform/common_dom"

"node_modules/angular2/ts/platform/common_dom":

"node_modules/angular2/ts/platform/server"

"node_modules/angular2/ts/platform/server":

"node_modules/angular2/ts/platform/testing/browser"

"node_modules/angular2/ts/platform/testing/browser":

TEST_BROWSER_APPLICATION_PROVIDERS

TEST_BROWSER_APPLICATION_PROVIDERS: Array<any>

Default application providers for testing.

TEST_BROWSER_PLATFORM_PROVIDERS

TEST_BROWSER_PLATFORM_PROVIDERS: Array<any>

Default patform providers for testing.

"node_modules/angular2/ts/platform/testing/browser_static"

"node_modules/angular2/ts/platform/testing/browser_static":

ADDITIONAL_TEST_BROWSER_PROVIDERS

ADDITIONAL_TEST_BROWSER_PROVIDERS: Array<any>

TEST_BROWSER_STATIC_APPLICATION_PROVIDERS

TEST_BROWSER_STATIC_APPLICATION_PROVIDERS: Array<any>

Default application providers for testing without a compiler.

TEST_BROWSER_STATIC_PLATFORM_PROVIDERS

TEST_BROWSER_STATIC_PLATFORM_PROVIDERS: Array<any>

Default patform providers for testing without a compiler.

initBrowserTests

  • initBrowserTests(): void
  • Returns void

"node_modules/angular2/ts/platform/testing/server"

"node_modules/angular2/ts/platform/testing/server":

TEST_SERVER_APPLICATION_PROVIDERS

TEST_SERVER_APPLICATION_PROVIDERS: Array<any>

Default application providers for testing.

TEST_SERVER_PLATFORM_PROVIDERS

TEST_SERVER_PLATFORM_PROVIDERS: Array<any>

Default patform providers for testing.

appDoc

  • appDoc(): HTMLDocument
  • Returns HTMLDocument

initServerTests

  • initServerTests(): void
  • Returns void

"node_modules/angular2/ts/platform/worker_app"

"node_modules/angular2/ts/platform/worker_app":

"node_modules/angular2/ts/platform/worker_render"

"node_modules/angular2/ts/platform/worker_render":

WORKER_RENDER_APP

WORKER_RENDER_APP: Array<any>
deprecated

Use WORKER_RENDER_APPLICATION

"node_modules/angular2/ts/router"

"node_modules/angular2/ts/router":

ROUTER_DIRECTIVES

ROUTER_DIRECTIVES: any[]

A list of directives. To use the router directives like RouterOutlet and RouterLink, add this to your directives array in the View decorator of your component.

Example (live demo)

``` import {Component} from 'angular2/core'; import {ROUTER_DIRECTIVES, ROUTER_PROVIDERS, RouteConfig} from 'angular2/router';

component

({directives: [ROUTER_DIRECTIVES]})

routeconfig

([ {...}, ]) class AppCmp { // ... }

bootstrap(AppCmp, [ROUTER_PROVIDERS]); ```

"node_modules/angular2/ts/router/router_link_dsl"

"node_modules/angular2/ts/router/router_link_dsl":

ROUTER_LINK_DSL_PROVIDER

ROUTER_LINK_DSL_PROVIDER: Provider

Enables the router link DSL.

Warning. This feature is experimental and can change.

To enable the transformer pass the router link DSL provider to bootstrap.

Example:

import {bootstrap} from 'angular2/platform/browser';
import {ROUTER_LINK_DSL_PROVIDER} from 'angular2/router/router_link_dsl';

bootstrap(CustomApp, [ROUTER_LINK_DSL_PROVIDER]);

The DSL allows you to express router links as follows:

<a [routerLink]="route:User"> <!-- Same as <a [routerLink]="['User']"> -->
<a [routerLink]="route:/User"> <!-- Same as <a [routerLink]="['User']"> -->
<a [routerLink]="route:./User"> <!-- Same as <a [routerLink]="['./User']"> -->
<a [routerLink]="./User(id: value, name: 'Bob')"> <!-- Same as <a [routerLink]="['./User', {id:
value, name: 'Bob'}]"> -->
<a [routerLink]="/User/Modal"> <!-- Same as <a [routerLink]="['/User', 'Modal']"> -->
<a [routerLink]="User[Modal]"> <!-- Same as <a [routerLink]="['User', ['Modal']]"> -->

"node_modules/angular2/ts/router/testing"

"node_modules/angular2/ts/router/testing":

"node_modules/angular2/ts/src/animate/animation"

"node_modules/angular2/ts/src/animate/animation":

Animation

Animation:

constructor

  • Stores the start time and starts the animation

    Parameters

    Returns Animation

_stringPrefix

_stringPrefix: string

browserDetails

browserDetails: BrowserDetails

callbacks

callbacks: Function[]

functions to be called upon completion

completed

completed: boolean

flag used to track whether or not the animation has finished

computedDelay

computedDelay: number

the animation delay (ms) (whether from CSS or manually set)

computedDuration

computedDuration: number

the duration (ms) of the animation (whether from CSS or manually set)

data

element

element: HTMLElement

eventClearFunctions

eventClearFunctions: Function[]

functions for removing event listeners

startTime

startTime: number

timestamp of when the animation started

totalTime

totalTime:

total amount of time that the animation should take including delay

addClasses

  • addClasses(classes: string[]): void
  • Adds the provided classes to the element

    Parameters

    • classes: string[]

    Returns void

addEvents

  • addEvents(): void
  • Adds events to track when animations have finished

    Returns void

applyStyles

  • applyStyles(styles: object): void
  • Applies the provided styles to the element

    Parameters

    • styles: object
      • [key: string]: any

    Returns void

handleAnimationCompleted

  • handleAnimationCompleted(): void
  • Runs all animation callbacks and removes temporary classes

    Returns void

handleAnimationEvent

  • handleAnimationEvent(event: any): void
  • Parameters

    • event: any

    Returns void

onComplete

  • Adds animation callbacks to be called upon completion

    Parameters

    • callback: Function

    Returns Animation

parseDurationString

  • parseDurationString(duration: string): number
  • Converts the duration string to the number of milliseconds

    Parameters

    • duration: string

    Returns number

removeClasses

  • removeClasses(classes: string[]): void
  • Removes the provided classes from the element

    Parameters

    • classes: string[]

    Returns void

setup

  • setup(): void
  • Sets up the initial styles before the animation is started

    Returns void

start

  • start(): void
  • After the initial setup has occurred, this method adds the animation styles

    Returns void

stripLetters

  • stripLetters(str: string): string
  • Strips the letters from the duration string

    Parameters

    • str: string

    Returns string

wait

  • wait(callback: Function): void
  • Parameters

    • callback: Function

    Returns void

"node_modules/angular2/ts/src/animate/animation_builder"

"node_modules/angular2/ts/src/animate/animation_builder":

AnimationBuilder

AnimationBuilder:

constructor

  • Used for DI

    Parameters

    Returns AnimationBuilder

browserDetails

browserDetails: BrowserDetails

css

  • Creates a new CSS Animation

    Returns CssAnimationBuilder

"node_modules/angular2/ts/src/animate/browser_details"

"node_modules/angular2/ts/src/animate/browser_details":

BrowserDetails

BrowserDetails:

constructor

  • Returns BrowserDetails

elapsedTimeIncludesDelay

elapsedTimeIncludesDelay: boolean

doesElapsedTimeIncludesDelay

  • doesElapsedTimeIncludesDelay(): void
  • Determines if event.elapsedTime includes transition delay in the current browser. At this time, Chrome and Opera seem to be the only browsers that include this.

    Returns void

raf

  • raf(callback: Function, frames?: number): Function
  • Parameters

    • callback: Function
    • Default value frames: number = 1

    Returns Function

RafQueue

RafQueue:

constructor

  • new RafQueue(callback: Function, frames: number): RafQueue
  • Parameters

    • callback: Function
    • frames: number

    Returns RafQueue

callback

callback: Function

currentFrameId

currentFrameId: number

frames

frames: number

_nextFrame

  • _nextFrame(timestamp: number): void
  • Parameters

    • timestamp: number

    Returns void

_raf

  • _raf(): void
  • Returns void

cancel

  • cancel(): void
  • Returns void

"node_modules/angular2/ts/src/animate/css_animation_builder"

"node_modules/angular2/ts/src/animate/css_animation_builder":

CssAnimationBuilder

CssAnimationBuilder:

constructor

  • Accepts public properties for CssAnimationBuilder

    Parameters

    Returns CssAnimationBuilder

browserDetails

browserDetails: BrowserDetails

data

type

{CssAnimationOptions}

addAnimationClass

  • Adds a temporary class that will be removed at the end of the animation

    Parameters

    • className: string

    Returns CssAnimationBuilder

addClass

  • Adds a class that will remain on the element after the animation has finished

    Parameters

    • className: string

    Returns CssAnimationBuilder

removeClass

  • Removes a class from the element

    Parameters

    • className: string

    Returns CssAnimationBuilder

setDelay

  • Sets the animation delay (and overrides any defined through CSS)

    Parameters

    • delay: number

    Returns CssAnimationBuilder

setDuration

  • Sets the animation duration (and overrides any defined through CSS)

    Parameters

    • duration: number

    Returns CssAnimationBuilder

setFromStyles

  • Sets the initial styles for the animation

    Parameters

    • from: object
      • [key: string]: any

    Returns CssAnimationBuilder

setStyles

  • Sets styles for both the initial state and the destination state

    Parameters

    • from: object
      • [key: string]: any
    • to: object
      • [key: string]: any

    Returns CssAnimationBuilder

setToStyles

  • Sets the destination styles for the animation

    Parameters

    • to: object
      • [key: string]: any

    Returns CssAnimationBuilder

start

  • Starts the animation and returns a promise

    Parameters

    • element: HTMLElement

    Returns Animation

"node_modules/angular2/ts/src/animate/css_animation_options"

"node_modules/angular2/ts/src/animate/css_animation_options":

CssAnimationOptions

CssAnimationOptions:

animationClasses

animationClasses: string[]

classes to be added for the duration of the animation

classesToAdd

classesToAdd: string[]

classes to be added to the element

classesToRemove

classesToRemove: string[]

classes to be removed from the element

delay

delay: number

override the transition delay (in milliseconds)

duration

duration: number

override the duration of the animation (in milliseconds)

fromStyles

fromStyles: object

initial styles for the element

Type declaration

  • [key: string]: any

toStyles

toStyles: object

destination styles for the element

Type declaration

  • [key: string]: any

"node_modules/angular2/ts/src/common/common_directives"

"node_modules/angular2/ts/src/common/common_directives":

COMMON_DIRECTIVES

COMMON_DIRECTIVES: Type[]

A collection of Angular core directives that are likely to be used in each and every Angular application. This includes core directives (e.g., NgIf and NgFor), and forms directives (e.g., NgModel).

This collection can be used to quickly enumerate all the built-in directives in the directives property of the @Component decorator.

Example

Instead of writing:

```typescript import {NgClass, NgIf, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault, NgModel, NgForm} from 'angular2/common'; import {OtherDirective} from './myDirectives';

component

({ selector: 'my-component', templateUrl: 'myComponent.html', directives: [NgClass, NgIf, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault, NgModel, NgForm, OtherDirective] }) export class MyComponent { ... } ``` one could import all the common directives at once:

```typescript import {COMMON_DIRECTIVES} from 'angular2/common'; import {OtherDirective} from './myDirectives';

component

({ selector: 'my-component', templateUrl: 'myComponent.html', directives: [COMMON_DIRECTIVES, OtherDirective] }) export class MyComponent { ... } ```

"node_modules/angular2/ts/src/common/directives"

"node_modules/angular2/ts/src/common/directives":

"node_modules/angular2/ts/src/common/directives/core_directives"

"node_modules/angular2/ts/src/common/directives/core_directives":

CORE_DIRECTIVES

CORE_DIRECTIVES: Type[]

A collection of Angular core directives that are likely to be used in each and every Angular application.

This collection can be used to quickly enumerate all the built-in directives in the directives property of the @Component annotation.

Example (live demo)

Instead of writing:

```typescript import {NgClass, NgIf, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault} from 'angular2/common'; import {OtherDirective} from './myDirectives';

component

({ selector: 'my-component', templateUrl: 'myComponent.html', directives: [NgClass, NgIf, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault, OtherDirective] }) export class MyComponent { ... } ``` one could import all the core directives at once:

```typescript import {CORE_DIRECTIVES} from 'angular2/common'; import {OtherDirective} from './myDirectives';

component

({ selector: 'my-component', templateUrl: 'myComponent.html', directives: [CORE_DIRECTIVES, OtherDirective] }) export class MyComponent { ... } ```

"node_modules/angular2/ts/src/common/directives/ng_class"

"node_modules/angular2/ts/src/common/directives/ng_class":

NgClass

NgClass:

The NgClass directive conditionally adds and removes CSS classes on an HTML element based on an expression's evaluation result.

The result of an expression evaluation is interpreted differently depending on type of the expression evaluation result:

  • string - all the CSS classes listed in a string (space delimited) are added
  • Array - all the CSS classes (Array elements) are added
  • Object - each key corresponds to a CSS class name while values are interpreted as expressions evaluating to Boolean. If a given expression evaluates to true a corresponding CSS class is added - otherwise it is removed.

While the NgClass directive can interpret expressions evaluating to string, Array or Object, the Object-based version is the most often used and has an advantage of keeping all the CSS class names in a template.

Example (live demo):

``` import {Component} from 'angular2/core'; import {NgClass} from 'angular2/common';

component

({ selector: 'toggle-button', inputs: ['isDisabled'], template: <div class="button" [ngClass]="{active: isOn, disabled: isDisabled}" (click)="toggle(!isOn)"> Click me! </div>, styles: [` .button { width: 120px; border: medium solid black; }

.active {
  background-color: red;

}

.disabled {
  color: gray;
  border: medium solid gray;
}

`] directives: [NgClass] }) class ToggleButton { isOn = false; isDisabled = false;

toggle(newState) { if (!this.isDisabled) { this.isOn = newState; } } } ```

constructor

  • new NgClass(_iterableDiffers: IterableDiffers, _keyValueDiffers: KeyValueDiffers, _ngEl: ElementRef, _renderer: Renderer): NgClass
  • Parameters

    • _iterableDiffers: IterableDiffers
    • _keyValueDiffers: KeyValueDiffers
    • _ngEl: ElementRef
    • _renderer: Renderer

    Returns NgClass

_initialClasses

_initialClasses: string[]

_iterableDiffer

_iterableDiffer: IterableDiffer

_iterableDiffers

_iterableDiffers: IterableDiffers

_keyValueDiffer

_keyValueDiffer: KeyValueDiffer

_keyValueDiffers

_keyValueDiffers: KeyValueDiffers

_ngEl

_ngEl: ElementRef

_rawClass

_rawClass: string[] | Set<string>

_renderer

_renderer: Renderer

initialClasses

initialClasses:

rawClass

rawClass:

_applyClasses

  • _applyClasses(rawClassVal: string[] | Set<string> | object, isCleanup: boolean): void
  • Parameters

    • rawClassVal: string[] | Set<string> | object
    • isCleanup: boolean

    Returns void

_applyInitialClasses

  • _applyInitialClasses(isCleanup: boolean): void
  • Parameters

    • isCleanup: boolean

    Returns void

_applyIterableChanges

  • _applyIterableChanges(changes: any): void
  • Parameters

    • changes: any

    Returns void

_applyKeyValueChanges

  • _applyKeyValueChanges(changes: any): void
  • Parameters

    • changes: any

    Returns void

_cleanupClasses

  • _cleanupClasses(rawClassVal: string[] | Set<string> | object): void
  • Parameters

    • rawClassVal: string[] | Set<string> | object

    Returns void

_toggleClass

  • _toggleClass(className: string, enabled: boolean): void
  • Parameters

    • className: string
    • enabled: boolean

    Returns void

ngDoCheck

  • ngDoCheck(): void
  • Returns void

ngOnDestroy

  • ngOnDestroy(): void
  • Returns void

"node_modules/angular2/ts/src/common/directives/ng_for"

"node_modules/angular2/ts/src/common/directives/ng_for":

NgFor

NgFor:

The NgFor directive instantiates a template once per item from an iterable. The context for each instantiated template inherits from the outer context with the given loop variable set to the current item from the iterable.

Local Variables

NgFor provides several exported values that can be aliased to local variables:

  • index will be set to the current loop iteration for each template context.
  • last will be set to a boolean value indicating whether the item is the last one in the iteration.
  • even will be set to a boolean value indicating whether this item has an even index.
  • odd will be set to a boolean value indicating whether this item has an odd index.

Change Propagation

When the contents of the iterator changes, NgFor makes the corresponding changes to the DOM:

  • When an item is added, a new instance of the template is added to the DOM.
  • When an item is removed, its template instance is removed from the DOM.
  • When items are reordered, their respective templates are reordered in the DOM.
  • Otherwise, the DOM element for that item will remain the same.

Angular uses object identity to track insertions and deletions within the iterator and reproduce those changes in the DOM. This has important implications for animations and any stateful controls (such as <input> elements which accept user input) that are present. Inserted rows can be animated in, deleted rows can be animated out, and unchanged rows retain any unsaved state such as user input.

It is possible for the identities of elements in the iterator to change while the data does not. This can happen, for example, if the iterator produced from an RPC to the server, and that RPC is re-run. Even if the data hasn't changed, the second response will produce objects with different identities, and Angular will tear down the entire DOM and rebuild it (as if all old elements were deleted and all new elements inserted). This is an expensive operation and should be avoided if possible.

Syntax

  • <li *ngFor="#item of items; #i = index">...</li>
  • <li template="ngFor #item of items; #i = index">...</li>
  • <template ngFor #item [ngForOf]="items" #i="index"><li>...</li></template>

Example

See a live demo for a more detailed example.

constructor

  • new NgFor(_viewContainer: ViewContainerRef, _templateRef: TemplateRef, _iterableDiffers: IterableDiffers, _cdr: ChangeDetectorRef): NgFor
  • Parameters

    • _viewContainer: ViewContainerRef
    • _templateRef: TemplateRef
    • _iterableDiffers: IterableDiffers
    • _cdr: ChangeDetectorRef

    Returns NgFor

_cdr

_cdr: ChangeDetectorRef

_differ

_differ: IterableDiffer

_iterableDiffers

_iterableDiffers: IterableDiffers

_ngForOf

_ngForOf: any
internal

_ngForTrackBy

_ngForTrackBy: TrackByFn

_templateRef

_templateRef: TemplateRef

_viewContainer

_viewContainer: ViewContainerRef

ngForOf

ngForOf:

ngForTemplate

ngForTemplate:

ngForTrackBy

ngForTrackBy:

_applyChanges

  • Parameters

    Returns void

_bulkInsert

_bulkRemove

_perViewChange

  • Parameters

    Returns void

ngDoCheck

  • ngDoCheck(): void
  • Returns void

RecordViewTuple

RecordViewTuple:

constructor

  • Parameters

    • record: any
    • view: EmbeddedViewRef

    Returns RecordViewTuple

record

record: any

view

view: EmbeddedViewRef

"node_modules/angular2/ts/src/common/directives/ng_if"

"node_modules/angular2/ts/src/common/directives/ng_if":

NgIf

NgIf:

Removes or recreates a portion of the DOM tree based on an {expression}.

If the expression assigned to ngIf evaluates to a false value then the element is removed from the DOM, otherwise a clone of the element is reinserted into the DOM.

Example (live demo):

<div *ngIf="errorCount > 0" class="error">
  <!-- Error message displayed when the errorCount property on the current context is greater
than 0. -->
  {{errorCount}} errors detected
</div>

Syntax

  • <div *ngIf="condition">...</div>
  • <div template="ngIf condition">...</div>
  • <template [ngIf]="condition"><div>...</div></template>

constructor

  • new NgIf(_viewContainer: ViewContainerRef, _templateRef: TemplateRef): NgIf
  • Parameters

    • _viewContainer: ViewContainerRef
    • _templateRef: TemplateRef

    Returns NgIf

_prevCondition

_prevCondition: boolean

_templateRef

_templateRef: TemplateRef

_viewContainer

_viewContainer: ViewContainerRef

ngIf

ngIf:

"node_modules/angular2/ts/src/common/directives/ng_plural"

"node_modules/angular2/ts/src/common/directives/ng_plural":

NgLocalization

NgLocalization:

getPluralCategory

  • getPluralCategory(value: any): string
  • Parameters

    • value: any

    Returns string

NgPlural

NgPlural:

constructor

  • Parameters

    Returns NgPlural

_activeView

_activeView: SwitchView

_caseViews

_caseViews: Map<any, SwitchView>

_localization

_localization: NgLocalization

_switchValue

_switchValue: number

cases

cases: QueryList<NgPluralCase>

ngPlural

ngPlural:

_activateView

  • internal

    Parameters

    Returns void

_clearViews

  • _clearViews(): void
  • internal

    Returns void

_formatValue

  • internal

    Parameters

    Returns any

_getCategoryView

  • internal

    Parameters

    • value: number

    Returns SwitchView

_isValueView

  • internal

    Parameters

    Returns boolean

_stripValue

  • _stripValue(value: string): number
  • internal

    Parameters

    • value: string

    Returns number

_updateView

  • _updateView(): void
  • internal

    Returns void

ngAfterContentInit

  • ngAfterContentInit(): void
  • Returns void

NgPluralCase

NgPluralCase:

ngPlural is an i18n directive that displays DOM sub-trees that match the switch expression value, or failing that, DOM sub-trees that match the switch expression's pluralization category.

To use this directive, you must provide an extension of NgLocalization that maps values to category names. You then define a container element that sets the [ngPlural] attribute to a switch expression.

  • Inner elements defined with an [ngPluralCase] attribute will display based on their expression.
  • If [ngPluralCase] is set to a value starting with =, it will only display if the value matches the switch expression exactly.
  • Otherwise, the view will be treated as a "category match", and will only display if exact value matches aren't found and the value maps to its category using the getPluralCategory function provided.

If no matching views are found for a switch expression, inner elements marked [ngPluralCase]="other" will be displayed.

```typescript class MyLocalization extends NgLocalization { getPluralCategory(value: any) { if(value < 5) { return 'few'; } } }

component

({ selector: 'app', providers: [provide(NgLocalization, {useClass: MyLocalization})] })

view

({ template: `

Value = {{value}}

<div [ngPlural]="value">
  <template ngPluralCase="=0">there is nothing</template>
  <template ngPluralCase="=1">there is one</template>
  <template ngPluralCase="few">there are a few</template>
  <template ngPluralCase="other">there is some number</template>
</div>

`, directives: [NgPlural, NgPluralCase] }) export class App { value = 'init';

inc() { this.value = this.value === 'init' ? 0 : this.value + 1; } }

```

constructor

  • new NgPluralCase(value: string, template: TemplateRef, viewContainer: ViewContainerRef): NgPluralCase
  • Parameters

    • value: string
    • template: TemplateRef
    • viewContainer: ViewContainerRef

    Returns NgPluralCase

_view

_view: SwitchView

value

value: string

_CATEGORY_DEFAULT

_CATEGORY_DEFAULT: string

"node_modules/angular2/ts/src/common/directives/ng_style"

"node_modules/angular2/ts/src/common/directives/ng_style":

NgStyle

NgStyle:

The NgStyle directive changes styles based on a result of expression evaluation.

An expression assigned to the ngStyle property must evaluate to an object and the corresponding element styles are updated based on changes to this object. Style names to update are taken from the object's keys, and values - from the corresponding object's values.

Syntax

  • <div [ngStyle]="{'font-style': style}"></div>
  • <div [ngStyle]="styleExp"></div> - here the styleExp must evaluate to an object

Example (live demo):

``` import {Component} from 'angular2/core'; import {NgStyle} from 'angular2/common';

component

({ selector: 'ngStyle-example', template: `

Change style of this text!


`, directives: [NgStyle] }) export class NgStyleExample { style = 'normal'; weight = 'normal'; size = '20px';

changeStyle($event: any) { this.style = $event.target.checked ? 'italic' : 'normal'; }

changeWeight($event: any) { this.weight = $event.target.checked ? 'bold' : 'normal'; } } ```

In this example the font-style, font-size and font-weight styles will be updated based on the style property's value changes.

constructor

  • new NgStyle(_differs: KeyValueDiffers, _ngEl: ElementRef, _renderer: Renderer): NgStyle
  • Parameters

    • _differs: KeyValueDiffers
    • _ngEl: ElementRef
    • _renderer: Renderer

    Returns NgStyle

_differ

_differ: KeyValueDiffer
internal

_differs

_differs: KeyValueDiffers

_ngEl

_ngEl: ElementRef

_rawStyle

_rawStyle: object
internal

Type declaration

  • [key: string]: string

_renderer

_renderer: Renderer

rawStyle

rawStyle:

_applyChanges

  • _applyChanges(changes: any): void
  • Parameters

    • changes: any

    Returns void

_setStyle

  • _setStyle(name: string, val: string): void
  • Parameters

    • name: string
    • val: string

    Returns void

ngDoCheck

  • ngDoCheck(): void
  • Returns void

"node_modules/angular2/ts/src/common/directives/ng_switch"

"node_modules/angular2/ts/src/common/directives/ng_switch":

NgSwitch

NgSwitch:

Adds or removes DOM sub-trees when their match expressions match the switch expression.

Elements within NgSwitch but without NgSwitchWhen or NgSwitchDefault directives will be preserved at the location as specified in the template.

NgSwitch simply inserts nested elements based on which match expression matches the value obtained from the evaluated switch expression. In other words, you define a container element (where you place the directive with a switch expression on the [ngSwitch]="..." attribute), define any inner elements inside of the directive and place a [ngSwitchWhen] attribute per element.

The ngSwitchWhen property is used to inform NgSwitch which element to display when the expression is evaluated. If a matching expression is not found via a ngSwitchWhen property then an element with the ngSwitchDefault attribute is displayed.

Example (live demo)

```typescript

component

({ selector: 'app', template: `

Value = {{value}}

<div [ngSwitch]="value">
  <p *ngSwitchWhen="'init'">increment to start</p>
  <p *ngSwitchWhen="0">0, increment again</p>
  <p *ngSwitchWhen="1">1, increment again</p>
  <p *ngSwitchWhen="2">2, stop incrementing</p>
  <p *ngSwitchDefault>&gt; 2, STOP!</p>
</div>

<!-- alternate syntax -->

<p [ngSwitch]="value">
  <template ngSwitchWhen="init">increment to start</template>
  <template [ngSwitchWhen]="0">0, increment again</template>
  <template [ngSwitchWhen]="1">1, increment again</template>
  <template [ngSwitchWhen]="2">2, stop incrementing</template>
  <template ngSwitchDefault>&gt; 2, STOP!</template>
</p>

`, directives: [NgSwitch, NgSwitchWhen, NgSwitchDefault] }) export class App { value = 'init';

inc() { this.value = this.value === 'init' ? 0 : this.value + 1; } }

bootstrap(App).catch(err => console.error(err)); ```

_activeViews

_activeViews: SwitchView[]

_switchValue

_switchValue: any

_useDefault

_useDefault: boolean

_valueViews

_valueViews: Map<any, Array<SwitchView>>

ngSwitch

ngSwitch:

_activateViews

  • internal

    Parameters

    Returns void

_deregisterView

  • _deregisterView(value: any, view: SwitchView): void
  • internal

    Parameters

    Returns void

_emptyAllActiveViews

  • _emptyAllActiveViews(): void
  • internal

    Returns void

_onWhenValueChanged

  • _onWhenValueChanged(oldWhen: any, newWhen: any, view: SwitchView): void
  • internal

    Parameters

    Returns void

_registerView

  • _registerView(value: any, view: SwitchView): void
  • internal

    Parameters

    Returns void

NgSwitchDefault

NgSwitchDefault:

Default case statements are displayed when no match expression matches the switch expression value.

See NgSwitch for more details and example.

constructor

  • new NgSwitchDefault(viewContainer: ViewContainerRef, templateRef: TemplateRef, sswitch: NgSwitch): NgSwitchDefault
  • Parameters

    • viewContainer: ViewContainerRef
    • templateRef: TemplateRef
    • sswitch: NgSwitch

    Returns NgSwitchDefault

NgSwitchWhen

NgSwitchWhen:

Insert the sub-tree when the ngSwitchWhen expression evaluates to the same value as the enclosing switch expression.

If multiple match expression match the switch expression value, all of them are displayed.

See NgSwitch for more details and example.

constructor

  • new NgSwitchWhen(viewContainer: ViewContainerRef, templateRef: TemplateRef, ngSwitch: NgSwitch): NgSwitchWhen
  • Parameters

    • viewContainer: ViewContainerRef
    • templateRef: TemplateRef
    • ngSwitch: NgSwitch

    Returns NgSwitchWhen

_switch

_switch: NgSwitch

_value

_value: any
internal

_view

_view: SwitchView
internal

ngSwitchWhen

ngSwitchWhen:

SwitchView

SwitchView:

constructor

  • new SwitchView(_viewContainerRef: ViewContainerRef, _templateRef: TemplateRef): SwitchView
  • Parameters

    • _viewContainerRef: ViewContainerRef
    • _templateRef: TemplateRef

    Returns SwitchView

_templateRef

_templateRef: TemplateRef

_viewContainerRef

_viewContainerRef: ViewContainerRef

create

  • create(): void
  • Returns void

destroy

  • destroy(): void
  • Returns void

_WHEN_DEFAULT

_WHEN_DEFAULT: Object

"node_modules/angular2/ts/src/common/directives/observable_list_diff"

"node_modules/angular2/ts/src/common/directives/observable_list_diff":

workaround_empty_observable_list_diff

workaround_empty_observable_list_diff: any

This module exists in Dart, but not in Typescript. This exported symbol is only here to help Typescript think this is a module.

"node_modules/angular2/ts/src/common/forms"

"node_modules/angular2/ts/src/common/forms":

FORM_BINDINGS

FORM_BINDINGS: Array<Type>

See FORM_PROVIDERS instead.

deprecated

FORM_PROVIDERS

FORM_PROVIDERS: Type[]

Shorthand set of providers used for building Angular forms.

Example

bootstrap(MyApp, [FORM_PROVIDERS]);

"node_modules/angular2/ts/src/common/forms/directives"

"node_modules/angular2/ts/src/common/forms/directives":

FORM_DIRECTIVES

FORM_DIRECTIVES: Type[]

A list of all the form directives used as part of a @Component annotation.

This is a shorthand for importing them each individually.

Example

```typescript

component

({ selector: 'my-app', directives: [FORM_DIRECTIVES] }) class MyApp {} ```

"node_modules/angular2/ts/src/common/forms/directives/abstract_control_directive"

"node_modules/angular2/ts/src/common/forms/directives/abstract_control_directive":

AbstractControlDirective

AbstractControlDirective:

Base class for control directives.

Only used internally in the forms module.

control

control:

dirty

dirty:

errors

errors:

path

path:

pristine

pristine:

touched

touched:

untouched

untouched:

valid

valid:

value

value:

"node_modules/angular2/ts/src/common/forms/directives/checkbox_value_accessor"

"node_modules/angular2/ts/src/common/forms/directives/checkbox_value_accessor":

CheckboxControlValueAccessor

CheckboxControlValueAccessor:

The accessor for writing a value and listening to changes on a checkbox input element.

Example

 <input type="checkbox" ngControl="rememberLogin">

constructor

  • Parameters

    • _renderer: Renderer
    • _elementRef: ElementRef

    Returns CheckboxControlValueAccessor

_elementRef

_elementRef: ElementRef

_renderer

_renderer: Renderer

onChange

  • onChange(_: any): void
  • Parameters

    • _: any

    Returns void

onTouched

  • onTouched(): void
  • Returns void

registerOnChange

  • registerOnChange(fn: function): void
  • Parameters

    • fn: function
        • (_: any): object
        • Parameters

          • _: any

          Returns object

    Returns void

registerOnTouched

  • registerOnTouched(fn: function): void
  • Parameters

    • fn: function
        • (): object
        • Returns object

    Returns void

writeValue

  • writeValue(value: any): void
  • Parameters

    • value: any

    Returns void

CHECKBOX_VALUE_ACCESSOR

CHECKBOX_VALUE_ACCESSOR: Provider

"node_modules/angular2/ts/src/common/forms/directives/control_container"

"node_modules/angular2/ts/src/common/forms/directives/control_container":

ControlContainer

ControlContainer:

A directive that contains multiple NgControls.

Only used by the forms module.

name

name: string

control

control:

dirty

dirty:

errors

errors:

formDirective

formDirective:

Get the form to which this container belongs.

path

path:

Get the path to this container.

pristine

pristine:

touched

touched:

untouched

untouched:

valid

valid:

value

value:

"node_modules/angular2/ts/src/common/forms/directives/control_value_accessor"

"node_modules/angular2/ts/src/common/forms/directives/control_value_accessor":

ControlValueAccessor

ControlValueAccessor:

A bridge between a control and a native element.

A ControlValueAccessor abstracts the operations of writing a new value to a DOM element representing an input control.

Please see DefaultValueAccessor for more information.

registerOnChange

  • registerOnChange(fn: any): void
  • Set the function to be called when the control receives a change event.

    Parameters

    • fn: any

    Returns void

registerOnTouched

  • registerOnTouched(fn: any): void
  • Set the function to be called when the control receives a touch event.

    Parameters

    • fn: any

    Returns void

writeValue

  • writeValue(obj: any): void
  • Write a new value to the element.

    Parameters

    • obj: any

    Returns void

NG_VALUE_ACCESSOR

NG_VALUE_ACCESSOR: OpaqueToken

Used to provide a ControlValueAccessor for form controls.

See DefaultValueAccessor for how to implement one.

"node_modules/angular2/ts/src/common/forms/directives/default_value_accessor"

"node_modules/angular2/ts/src/common/forms/directives/default_value_accessor":

DefaultValueAccessor

DefaultValueAccessor:

The default accessor for writing a value and listening to changes that is used by the NgModel, NgFormControl, and NgControlName directives.

Example

 <input type="text" ngControl="searchQuery">

constructor

  • Parameters

    • _renderer: Renderer
    • _elementRef: ElementRef

    Returns DefaultValueAccessor

_elementRef

_elementRef: ElementRef

_renderer

_renderer: Renderer

onChange

  • onChange(_: any): void
  • Parameters

    • _: any

    Returns void

onTouched

  • onTouched(): void
  • Returns void

registerOnChange

  • registerOnChange(fn: function): void
  • Parameters

    • fn: function
        • (_: any): void
        • Parameters

          • _: any

          Returns void

    Returns void

registerOnTouched

  • registerOnTouched(fn: function): void
  • Parameters

    • fn: function
        • (): void
        • Returns void

    Returns void

writeValue

  • writeValue(value: any): void
  • Parameters

    • value: any

    Returns void

DEFAULT_VALUE_ACCESSOR

DEFAULT_VALUE_ACCESSOR: Provider

"node_modules/angular2/ts/src/common/forms/directives/form_interface"

"node_modules/angular2/ts/src/common/forms/directives/form_interface":

Form

Form:

An interface that NgFormModel and NgForm implement.

Only used by the forms module.

addControl

  • Add a control to this form.

    Parameters

    Returns void

addControlGroup

  • Add a group of controls to this form.

    Parameters

    Returns void

getControl

  • Look up the Control associated with a particular NgControl.

    Parameters

    Returns Control

getControlGroup

removeControl

  • Remove a control from this form.

    Parameters

    Returns void

removeControlGroup

  • Remove a group of controls from this form.

    Parameters

    Returns void

updateModel

  • updateModel(dir: NgControl, value: any): void
  • Update the model for a particular control with a new value.

    Parameters

    Returns void

"node_modules/angular2/ts/src/common/forms/directives/ng_control"

"node_modules/angular2/ts/src/common/forms/directives/ng_control":

NgControl

NgControl:

A base class that all control directive extend. It binds a Control object to a DOM element.

Used internally by Angular forms.

name

name: string

valueAccessor

valueAccessor: ControlValueAccessor

asyncValidator

asyncValidator:

control

control:

dirty

dirty:

errors

errors:

path

path:

pristine

pristine:

touched

touched:

untouched

untouched:

valid

valid:

validator

validator:

value

value:

viewToModelUpdate

  • viewToModelUpdate(newValue: any): void
  • Parameters

    • newValue: any

    Returns void

"node_modules/angular2/ts/src/common/forms/directives/ng_control_group"

"node_modules/angular2/ts/src/common/forms/directives/ng_control_group":

NgControlGroup

NgControlGroup:

Creates and binds a control group to a DOM element.

This directive can only be used as a child of NgForm or NgFormModel.

Example (live demo)

```typescript

component

({ selector: 'my-app', directives: [FORM_DIRECTIVES], template: <div> <h2>Angular2 Control &amp; ControlGroup Example</h2> <form #f="ngForm"> <div ngControlGroup="name" #cg-name="form"> <h3>Enter your name:</h3> <p>First: <input ngControl="first" required></p> <p>Middle: <input ngControl="middle"></p> <p>Last: <input ngControl="last" required></p> </div> <h3>Name value:</h3> <pre>{{valueOf(cgName)}}</pre> <p>Name is {{cgName?.control?.valid ? "valid" : "invalid"}}</p> <h3>What's your favorite food?</h3> <p><input ngControl="food"></p> <h3>Form value</h3> <pre>{{valueOf(f)}}</pre> </form> </div>, directives: [FORM_DIRECTIVES] }) export class App { valueOf(cg: NgControlGroup): string { if (cg.control == null) { return null; } return JSON.stringify(cg.control.value, null, 2); } } ```

This example declares a control group for a user's name. The value and validation state of this group can be accessed separately from the overall form.

constructor

  • Parameters

    Returns NgControlGroup

_asyncValidators

_asyncValidators: any[]

_parent

internal

_validators

_validators: any[]

name

name: string

asyncValidator

asyncValidator:

control

control:

Get the ControlGroup backing this binding.

dirty

dirty:

errors

errors:

formDirective

formDirective:

Get the Form to which this group belongs.

path

path:

Get the path to this control group.

pristine

pristine:

touched

touched:

untouched

untouched:

valid

valid:

validator

validator:

value

value:

ngOnDestroy

  • ngOnDestroy(): void
  • Returns void

ngOnInit

  • ngOnInit(): void
  • Returns void

controlGroupProvider

controlGroupProvider: Provider

"node_modules/angular2/ts/src/common/forms/directives/ng_control_name"

"node_modules/angular2/ts/src/common/forms/directives/ng_control_name":

NgControlName

NgControlName:

Creates and binds a control with a specified name to a DOM element.

This directive can only be used as a child of NgForm or NgFormModel.

Example

In this example, we create the login and password controls. We can work with each control separately: check its validity, get its value, listen to its changes.

```

component

({ selector: "login-comp", directives: [FORM_DIRECTIVES], template: `

Login
Login is invalid

     Password <input type='password' ngControl='password'>
     <button type='submit'>Log in!</button>
   </form>
 `})

class LoginComp { onLogIn(value): void { // value === {login: 'some login', password: 'some password'} } }


We can also use ngModel to bind a domain model to the form.
component

({ selector: "login-comp", directives: [FORM_DIRECTIVES], template: <form (submit)='onLogIn()'> Login <input type='text' ngControl='login' [(ngModel)]="credentials.login"> Password <input type='password' ngControl='password' [(ngModel)]="credentials.password"> <button type='submit'>Log in!</button> </form>}) class LoginComp { credentials: {login:string, password:string};

onLogIn(): void { // this.credentials.login === "some login" // this.credentials.password === "some password" } } ```

constructor

_added

_added: boolean

_asyncValidators

_asyncValidators: any[]

_parent

_validators

_validators: any[]

model

model: any

name

name: string

update

update: EventEmitter<Object>
internal

valueAccessor

valueAccessor: ControlValueAccessor

viewModel

viewModel: any

asyncValidator

asyncValidator:

control

control:

dirty

dirty:

errors

errors:

formDirective

formDirective:

path

path:

pristine

pristine:

touched

touched:

untouched

untouched:

valid

valid:

validator

validator:

value

value:

ngOnChanges

  • ngOnChanges(changes: object): void
  • Parameters

    • changes: object
      • [key: string]: SimpleChange

    Returns void

ngOnDestroy

  • ngOnDestroy(): void
  • Returns void

viewToModelUpdate

  • viewToModelUpdate(newValue: any): void
  • Parameters

    • newValue: any

    Returns void

controlNameBinding

controlNameBinding: Provider

"node_modules/angular2/ts/src/common/forms/directives/ng_control_status"

"node_modules/angular2/ts/src/common/forms/directives/ng_control_status":

NgControlStatus

NgControlStatus:

Directive automatically applied to Angular forms that sets CSS classes based on control status (valid/invalid/dirty/etc).

constructor

  • Parameters

    Returns NgControlStatus

_cd

ngClassDirty

ngClassDirty:

ngClassInvalid

ngClassInvalid:

ngClassPristine

ngClassPristine:

ngClassTouched

ngClassTouched:

ngClassUntouched

ngClassUntouched:

ngClassValid

ngClassValid:

"node_modules/angular2/ts/src/common/forms/directives/ng_form"

"node_modules/angular2/ts/src/common/forms/directives/ng_form":

NgForm

NgForm:

If NgForm is bound in a component, <form> elements in that component will be upgraded to use the Angular form system.

Typical Use

Include FORM_DIRECTIVES in the directives section of a View annotation to use NgForm and its associated controls.

Structure

An Angular form is a collection of Controls in some hierarchy. Controls can be at the top level or can be organized in ControlGroups or ControlArrays. This hierarchy is reflected in the form's value, a JSON object that mirrors the form structure.

Submission

The ngSubmit event signals when the user triggers a form submission.

Example (live demo)

```typescript

component

({ selector: 'my-app', template: <div> <p>Submit the form to see the data object Angular builds</p> <h2>NgForm demo</h2> <form #f="ngForm" (ngSubmit)="onSubmit(f.value)"> <h3>Control group: credentials</h3> <div ngControlGroup="credentials"> <p>Login: <input type="text" ngControl="login"></p> <p>Password: <input type="password" ngControl="password"></p> </div> <h3>Control group: person</h3> <div ngControlGroup="person"> <p>First name: <input type="text" ngControl="firstName"></p> <p>Last name: <input type="text" ngControl="lastName"></p> </div> <button type="submit">Submit Form</button> <p>Form data submitted:</p> </form> <pre>{{data}}</pre> </div>, directives: [CORE_DIRECTIVES, FORM_DIRECTIVES] }) export class App { constructor() {}

data: string;

onSubmit(data) { this.data = JSON.stringify(data, null, 2); } } ```

constructor

  • new NgForm(validators: any[], asyncValidators: any[]): NgForm
  • Parameters

    • validators: any[]
    • asyncValidators: any[]

    Returns NgForm

form

name

name: string

ngSubmit

ngSubmit: EventEmitter<Object>

control

control:

controls

controls:

dirty

dirty:

errors

errors:

formDirective

formDirective:

path

path:

pristine

pristine:

touched

touched:

untouched

untouched:

valid

valid:

value

value:

_findContainer

  • internal

    Parameters

    • path: string[]

    Returns ControlGroup

addControl

  • Parameters

    Returns void

addControlGroup

getControl

  • Parameters

    Returns Control

getControlGroup

onSubmit

  • onSubmit(): boolean
  • Returns boolean

removeControl

  • Parameters

    Returns void

removeControlGroup

updateModel

  • updateModel(dir: NgControl, value: any): void
  • Parameters

    Returns void

formDirectiveProvider

formDirectiveProvider: Provider

"node_modules/angular2/ts/src/common/forms/directives/ng_form_control"

"node_modules/angular2/ts/src/common/forms/directives/ng_form_control":

NgFormControl

NgFormControl:

Binds an existing Control to a DOM element.

Example (live demo)

In this example, we bind the control to an input element. When the value of the input element changes, the value of the control will reflect that change. Likewise, if the value of the control changes, the input element reflects that change.

```typescript

component

({ selector: 'my-app', template: <div> <h2>NgFormControl Example</h2> <form> <p>Element with existing control: <input type="text" [ngFormControl]="loginControl"></p> <p>Value of existing control: {{loginControl.value}}</p> </form> </div>, directives: [CORE_DIRECTIVES, FORM_DIRECTIVES] }) export class App { loginControl: Control = new Control(''); } ```

###ngModel

We can also use ngModel to bind a domain model to the form.

Example (live demo)

```typescript

component

({ selector: "login-comp", directives: [FORM_DIRECTIVES], template: "" }) class LoginComp { loginControl: Control = new Control(''); login:string; } ```

constructor

  • Parameters

    Returns NgFormControl

_asyncValidators

_asyncValidators: any[]

_validators

_validators: any[]

form

form: Control

model

model: any

name

name: string

update

update: EventEmitter<Object>

valueAccessor

valueAccessor: ControlValueAccessor

viewModel

viewModel: any

asyncValidator

asyncValidator:

control

control:

dirty

dirty:

errors

errors:

path

path:

pristine

pristine:

touched

touched:

untouched

untouched:

valid

valid:

validator

validator:

value

value:

_isControlChanged

  • _isControlChanged(changes: object): boolean
  • Parameters

    • changes: object
      • [key: string]: any

    Returns boolean

ngOnChanges

  • ngOnChanges(changes: object): void
  • Parameters

    • changes: object
      • [key: string]: SimpleChange

    Returns void

viewToModelUpdate

  • viewToModelUpdate(newValue: any): void
  • Parameters

    • newValue: any

    Returns void

formControlBinding

formControlBinding: Provider

"node_modules/angular2/ts/src/common/forms/directives/ng_form_model"

"node_modules/angular2/ts/src/common/forms/directives/ng_form_model":

NgFormModel

NgFormModel:

Binds an existing control group to a DOM element.

Example (live demo)

In this example, we bind the control group to the form element, and we bind the login and password controls to the login and password elements.

```typescript

component

({ selector: 'my-app', template: <div> <h2>NgFormModel Example</h2> <form [ngFormModel]="loginForm"> <p>Login: <input type="text" ngControl="login"></p> <p>Password: <input type="password" ngControl="password"></p> </form> <p>Value:</p> <pre>{{value}}</pre> </div>, directives: [FORM_DIRECTIVES] }) export class App { loginForm: ControlGroup;

constructor() { this.loginForm = new ControlGroup({ login: new Control(""), password: new Control("") }); }

get value(): string { return JSON.stringify(this.loginForm.value, null, 2); } } ```

We can also use ngModel to bind a domain model to the form.

```typescript

component

({ selector: "login-comp", directives: [FORM_DIRECTIVES], template: <form [ngFormModel]='loginForm'> Login <input type='text' ngControl='login' [(ngModel)]='credentials.login'> Password <input type='password' ngControl='password' [(ngModel)]='credentials.password'> <button (click)="onLogin()">Login</button> </form> }) class LoginComp { credentials: {login: string, password: string}; loginForm: ControlGroup;

constructor() { this.loginForm = new ControlGroup({ login: new Control(""), password: new Control("") }); }

onLogin(): void { // this.credentials.login === 'some login' // this.credentials.password === 'some password' } } ```

constructor

  • new NgFormModel(_validators: any[], _asyncValidators: any[]): NgFormModel
  • Parameters

    • _validators: any[]
    • _asyncValidators: any[]

    Returns NgFormModel

_asyncValidators

_asyncValidators: any[]

_validators

_validators: any[]

directives

directives: NgControl[]

form

name

name: string

ngSubmit

ngSubmit: EventEmitter<Object>

control

control:

dirty

dirty:

errors

errors:

formDirective

formDirective:

path

path:

pristine

pristine:

touched

touched:

untouched

untouched:

valid

valid:

value

value:

_updateDomValue

  • _updateDomValue(): void
  • internal

    Returns void

addControl

  • Parameters

    Returns void

addControlGroup

  • Parameters

    Returns void

getControl

  • Parameters

    Returns Control

getControlGroup

ngOnChanges

  • ngOnChanges(changes: object): void
  • Parameters

    • changes: object
      • [key: string]: SimpleChange

    Returns void

onSubmit

  • onSubmit(): boolean
  • Returns boolean

removeControl

  • Parameters

    Returns void

removeControlGroup

updateModel

  • updateModel(dir: NgControl, value: any): void
  • Parameters

    Returns void

formDirectiveProvider

formDirectiveProvider: Provider

"node_modules/angular2/ts/src/common/forms/directives/ng_model"

"node_modules/angular2/ts/src/common/forms/directives/ng_model":

NgModel

NgModel:

Binds a domain model to a form control.

Usage

ngModel binds an existing domain model to a form control. For a two-way binding, use [(ngModel)] to ensure the model updates in both directions.

Example (live demo)

```typescript

component

({ selector: "search-comp", directives: [FORM_DIRECTIVES], template: <input type='text' [(ngModel)]="searchQuery"> }) class SearchComp { searchQuery: string; } ```

constructor

  • Parameters

    Returns NgModel

_added

_added: boolean
internal

_asyncValidators

_asyncValidators: any[]

_control

_control: Control
internal

_validators

_validators: any[]

model

model: any

name

name: string

update

update: EventEmitter<Object>

valueAccessor

valueAccessor: ControlValueAccessor

viewModel

viewModel: any

asyncValidator

asyncValidator:

control

control:

dirty

dirty:

errors

errors:

path

path:

pristine

pristine:

touched

touched:

untouched

untouched:

valid

valid:

validator

validator:

value

value:

ngOnChanges

  • ngOnChanges(changes: object): void
  • Parameters

    • changes: object
      • [key: string]: SimpleChange

    Returns void

viewToModelUpdate

  • viewToModelUpdate(newValue: any): void
  • Parameters

    • newValue: any

    Returns void

formControlBinding

formControlBinding: Provider

"node_modules/angular2/ts/src/common/forms/directives/normalize_validator"

"node_modules/angular2/ts/src/common/forms/directives/normalize_validator":

normalizeAsyncValidator

normalizeValidator

  • Parameters

    Returns ValidatorFn

"node_modules/angular2/ts/src/common/forms/directives/number_value_accessor"

"node_modules/angular2/ts/src/common/forms/directives/number_value_accessor":

NumberValueAccessor

NumberValueAccessor:

The accessor for writing a number value and listening to changes that is used by the NgModel, NgFormControl, and NgControlName directives.

Example

 <input type="number" [(ngModel)]="age">

constructor

  • Parameters

    • _renderer: Renderer
    • _elementRef: ElementRef

    Returns NumberValueAccessor

_elementRef

_elementRef: ElementRef

_renderer

_renderer: Renderer

onChange

  • onChange(_: any): void
  • Parameters

    • _: any

    Returns void

onTouched

  • onTouched(): void
  • Returns void

registerOnChange

  • registerOnChange(fn: function): void
  • Parameters

    • fn: function
        • (_: number): void
        • Parameters

          • _: number

          Returns void

    Returns void

registerOnTouched

  • registerOnTouched(fn: function): void
  • Parameters

    • fn: function
        • (): void
        • Returns void

    Returns void

writeValue

  • writeValue(value: number): void
  • Parameters

    • value: number

    Returns void

NUMBER_VALUE_ACCESSOR

NUMBER_VALUE_ACCESSOR: Provider

"node_modules/angular2/ts/src/common/forms/directives/radio_control_value_accessor"

"node_modules/angular2/ts/src/common/forms/directives/radio_control_value_accessor":

RadioButtonState

RadioButtonState:

The value provided by the forms API for radio buttons.

constructor

  • Parameters

    • checked: boolean
    • value: string

    Returns RadioButtonState

checked

checked: boolean

value

value: string

RadioControlRegistry

RadioControlRegistry:

Internal class used by Angular to uncheck radio buttons with the matching name.

_accessors

_accessors: any[]

add

  • Parameters

    Returns void

remove

  • Parameters

    Returns void

select

  • Parameters

    Returns void

RadioControlValueAccessor

RadioControlValueAccessor:

The accessor for writing a radio control value and listening to changes that is used by the NgModel, NgFormControl, and NgControlName directives.

Example

 @Component({
   template: `
     <input type="radio" name="food" [(ngModel)]="foodChicken">
     <input type="radio" name="food" [(ngModel)]="foodFish">
   `
 })
 class FoodCmp {
   foodChicken = new RadioButtonState(true, "chicken");
   foodFish = new RadioButtonState(false, "fish");
 }

constructor

  • Parameters

    Returns RadioControlValueAccessor

_control

_control: NgControl

_elementRef

_elementRef: ElementRef

_fn

_fn: Function

_injector

_injector: Injector

_registry

_renderer

_renderer: Renderer

_state

name

name: string

fireUncheck

  • fireUncheck(): void
  • Returns void

ngOnDestroy

  • ngOnDestroy(): void
  • Returns void

ngOnInit

  • ngOnInit(): void
  • Returns void

onChange

  • onChange(): void
  • Returns void

onTouched

  • onTouched(): void
  • Returns void

registerOnChange

  • registerOnChange(fn: function): void
  • Parameters

    • fn: function
        • (_: any): object
        • Parameters

          • _: any

          Returns object

    Returns void

registerOnTouched

  • registerOnTouched(fn: function): void
  • Parameters

    • fn: function
        • (): object
        • Returns object

    Returns void

writeValue

  • writeValue(value: any): void
  • Parameters

    • value: any

    Returns void

RADIO_VALUE_ACCESSOR

RADIO_VALUE_ACCESSOR: Provider

"node_modules/angular2/ts/src/common/forms/directives/select_control_value_accessor"

"node_modules/angular2/ts/src/common/forms/directives/select_control_value_accessor":

NgSelectOption

NgSelectOption:

Marks <option> as dynamic, so Angular can be notified when options change.

Example

<select ngControl="city">
  <option *ngFor="#c of cities" [value]="c"></option>
</select>

SelectControlValueAccessor

SelectControlValueAccessor:

The accessor for writing a value and listening to changes on a select element.

constructor

  • Parameters

    • _renderer: Renderer
    • _elementRef: ElementRef
    • query: QueryList<NgSelectOption>

    Returns SelectControlValueAccessor

_elementRef

_elementRef: ElementRef

_renderer

_renderer: Renderer

value

value: string

_updateValueWhenListOfOptionsChanges

  • _updateValueWhenListOfOptionsChanges(query: QueryList<NgSelectOption>): void
  • Parameters

    Returns void

onChange

  • onChange(_: any): void
  • Parameters

    • _: any

    Returns void

onTouched

  • onTouched(): void
  • Returns void

registerOnChange

  • registerOnChange(fn: function): void
  • Parameters

    • fn: function
        • (): any
        • Returns any

    Returns void

registerOnTouched

  • registerOnTouched(fn: function): void
  • Parameters

    • fn: function
        • (): any
        • Returns any

    Returns void

writeValue

  • writeValue(value: any): void
  • Parameters

    • value: any

    Returns void

SELECT_VALUE_ACCESSOR

SELECT_VALUE_ACCESSOR: Provider

"node_modules/angular2/ts/src/common/forms/directives/shared"

"node_modules/angular2/ts/src/common/forms/directives/shared":

_throwError

  • Parameters

    Returns void

composeAsyncValidators

  • Parameters

    • validators: any[]

    Returns AsyncValidatorFn

composeValidators

  • Parameters

    • validators: any[]

    Returns ValidatorFn

controlPath

  • Parameters

    Returns string[]

isPropertyUpdated

  • isPropertyUpdated(changes: object, viewModel: any): boolean
  • Parameters

    • changes: object
      • [key: string]: any
    • viewModel: any

    Returns boolean

selectValueAccessor

setUpControl

  • Parameters

    Returns void

setUpControlGroup

  • Parameters

    Returns void

"node_modules/angular2/ts/src/common/forms/directives/validators"

"node_modules/angular2/ts/src/common/forms/directives/validators":

MaxLengthValidator

MaxLengthValidator:

A directive which installs the MaxLengthValidator for any ngControl,ngFormControl, or control withngModelthat also has amaxlength` attribute.

constructor

  • Parameters

    • maxLength: string

    Returns MaxLengthValidator

_validator

_validator: ValidatorFn

validate

  • Parameters

    Returns object

    • [key: string]: any

MinLengthValidator

MinLengthValidator:

A directive which installs the MinLengthValidator for any ngControl, ngFormControl, or control with ngModel that also has a minlength attribute.

constructor

  • Parameters

    • minLength: string

    Returns MinLengthValidator

_validator

_validator: ValidatorFn

validate

  • Parameters

    Returns object

    • [key: string]: any

PatternValidator

PatternValidator:

constructor

  • Parameters

    • pattern: string

    Returns PatternValidator

_validator

_validator: ValidatorFn

validate

  • Parameters

    Returns object

    • [key: string]: any

RequiredValidator

RequiredValidator:

A Directive that adds the required validator to any controls marked with the required attribute, via the NG_VALIDATORS binding.

Example

<input ngControl="fullName" required>

AsyncValidatorFn

  • Parameters

    Returns any

Validator

Validator:

An interface that can be implemented by classes that can act as validators.

Usage

```typescript

directive

({ selector: '[custom-validator]', providers: [provide(NG_VALIDATORS, {useExisting: CustomValidatorDirective, multi: true})] }) class CustomValidatorDirective implements Validator { validate(c: Control): {[key: string]: any} { return {"custom": true}; } } ```

validate

  • Parameters

    Returns object

    • [key: string]: any

ValidatorFn

  • Parameters

    Returns object

    • [key: string]: any

MAX_LENGTH_VALIDATOR

MAX_LENGTH_VALIDATOR: Provider

Provider which adds MaxLengthValidator to NG_VALIDATORS.

Example:

{@example common/forms/ts/validators/validators.ts region='max'}

MIN_LENGTH_VALIDATOR

MIN_LENGTH_VALIDATOR: Provider

Provivder which adds MinLengthValidator to NG_VALIDATORS.

Example:

{@example common/forms/ts/validators/validators.ts region='min'}

PATTERN_VALIDATOR

PATTERN_VALIDATOR: Provider

A Directive that adds the pattern validator to any controls marked with the pattern attribute, via the NG_VALIDATORS binding. Uses attribute value as the regex to validate Control value against. Follows pattern attribute semantics; i.e. regex must match entire Control value.

Example

<input [ngControl]="fullName" pattern="[a-zA-Z ]*">

REQUIRED_VALIDATOR

REQUIRED_VALIDATOR: Provider

"node_modules/angular2/ts/src/common/forms/form_builder"

"node_modules/angular2/ts/src/common/forms/form_builder":

FormBuilder

FormBuilder:

Creates a form object from a user-specified configuration.

Example (live demo)

```typescript

component

({ selector: 'my-app', viewBindings: [FORM_BINDINGS] template: <form [ngFormModel]="loginForm"> <p>Login <input ngControl="login"></p> <div ngControlGroup="passwordRetry"> <p>Password <input type="password" ngControl="password"></p> <p>Confirm password <input type="password" ngControl="passwordConfirmation"></p> </div> </form> <h3>Form value:</h3> <pre>{{value}}</pre>, directives: [FORM_DIRECTIVES] }) export class App { loginForm: ControlGroup;

constructor(builder: FormBuilder) { this.loginForm = builder.group({ login: ["", Validators.required], passwordRetry: builder.group({ password: ["", Validators.required], passwordConfirmation: ["", Validators.required, asyncValidator] }) }); }

get value(): string { return JSON.stringify(this.loginForm.value, null, 2); } } ```

_createControl

  • internal

    Parameters

    • controlConfig: any

    Returns AbstractControl

_reduceControls

  • _reduceControls(controlsConfig: object): object
  • internal

    Parameters

    • controlsConfig: object
      • [k: string]: any

    Returns object

array

  • Construct an array of Controls from the given controlsConfig array of configuration, with the given optional validator and asyncValidator.

    Parameters

    Returns ControlArray

control

  • Construct a new Control with the given value,validator, and asyncValidator.

    Parameters

    Returns Control

group

  • group(controlsConfig: object, extra?: object): ControlGroup
  • Construct a new ControlGroup with the given map of configuration. Valid keys for the extra parameter map are optionals and validator.

    See the ControlGroup constructor for more details.

    Parameters

    • controlsConfig: object
      • [key: string]: any
    • Default value extra: object = null
      • [key: string]: any

    Returns ControlGroup

"node_modules/angular2/ts/src/common/forms/model"

"node_modules/angular2/ts/src/common/forms/model":

AbstractControl

AbstractControl:

constructor

_asyncValidationSubscription

_asyncValidationSubscription: any

_errors

_errors: object

Type declaration

  • [key: string]: any

_parent

_pristine

_pristine: boolean

_status

_status: string

_statusChanges

_statusChanges: EventEmitter<any>

_touched

_touched: boolean

_value

_value: any
internal

_valueChanges

_valueChanges: EventEmitter<any>

asyncValidator

asyncValidator: AsyncValidatorFn

validator

validator: ValidatorFn

dirty

dirty:

errors

errors:

Returns the errors of this control.

pending

pending:

pristine

pristine:

root

root:

status

status:

statusChanges

statusChanges:

touched

touched:

untouched

untouched:

valid

valid:

value

value:

valueChanges

valueChanges:

_anyControlsHaveStatus

  • _anyControlsHaveStatus(status: string): boolean
  • internal

    Parameters

    • status: string

    Returns boolean

_calculateStatus

  • _calculateStatus(): string
  • Returns string

_cancelExistingSubscription

  • _cancelExistingSubscription(): void
  • Returns void

_initObservables

  • _initObservables(): void
  • internal

    Returns void

_runAsyncValidator

  • _runAsyncValidator(emitEvent: boolean): void
  • Parameters

    • emitEvent: boolean

    Returns void

_runValidator

  • _runValidator(): object
  • Returns object

    • [key: string]: any

_updateControlsErrors

  • _updateControlsErrors(): void
  • internal

    Returns void

_updateValue

  • _updateValue(): void
  • internal

    Returns void

find

  • Parameters

    • path: Array<string | number> | string

    Returns AbstractControl

getError

  • getError(errorCode: string, path?: string[]): any
  • Parameters

    • errorCode: string
    • Default value path: string[] = null

    Returns any

hasError

  • hasError(errorCode: string, path?: string[]): boolean
  • Parameters

    • errorCode: string
    • Default value path: string[] = null

    Returns boolean

markAsDirty

  • markAsDirty(__namedParameters?: object): void
  • Parameters

    • Default value __namedParameters: object = {}
      • onlySelf: boolean

    Returns void

markAsPending

  • markAsPending(__namedParameters?: object): void
  • Parameters

    • Default value __namedParameters: object = {}
      • onlySelf: boolean

    Returns void

markAsTouched

  • markAsTouched(): void
  • Returns void

setErrors

  • setErrors(errors: object, __namedParameters?: object): void
  • Sets errors on a control.

    This is used when validations are run not automatically, but manually by the user.

    Calling setErrors will also update the validity of the parent control.

    Usage

    var login = new Control("someLogin");
    login.setErrors({
      "notUnique": true
    });
    
    expect(login.valid).toEqual(false);
    expect(login.errors).toEqual({"notUnique": true});
    
    login.updateValue("someOtherLogin");
    
    expect(login.valid).toEqual(true);
    

    Parameters

    • errors: object
      • [key: string]: any
    • Default value __namedParameters: object = {}
      • emitEvent: boolean

    Returns void

setParent

  • Parameters

    Returns void

updateValueAndValidity

  • updateValueAndValidity(__namedParameters?: object): void
  • Parameters

    • Default value __namedParameters: object = {}
      • emitEvent: boolean
      • onlySelf: boolean

    Returns void

Control

Control:

Defines a part of a form that cannot be divided into other controls. Controls have values and validation state, which is determined by an optional validation function.

Control is one of the three fundamental building blocks used to define forms in Angular, along with ControlGroup and ControlArray.

Usage

By default, a Control is created for every <input> or other form component. With NgFormControl or NgFormModel an existing Control can be bound to a DOM element instead. This Control can be configured with a custom validation function.

Example (live demo)

constructor

_onChange

_onChange: Function
internal

_value

_value: any
internal

asyncValidator

asyncValidator: AsyncValidatorFn

validator

validator: ValidatorFn

dirty

dirty:

errors

errors:

Returns the errors of this control.

pending

pending:

pristine

pristine:

root

root:

status

status:

statusChanges

statusChanges:

touched

touched:

untouched

untouched:

valid

valid:

value

value:

valueChanges

valueChanges:

_anyControlsHaveStatus

  • _anyControlsHaveStatus(status: string): boolean

_initObservables

  • _initObservables(): void

_updateControlsErrors

  • _updateControlsErrors(): void

_updateValue

  • _updateValue(): void

find

  • Parameters

    • path: Array<string | number> | string

    Returns AbstractControl

getError

  • getError(errorCode: string, path?: string[]): any
  • Parameters

    • errorCode: string
    • Default value path: string[] = null

    Returns any

hasError

  • hasError(errorCode: string, path?: string[]): boolean
  • Parameters

    • errorCode: string
    • Default value path: string[] = null

    Returns boolean

markAsDirty

  • markAsDirty(__namedParameters?: object): void
  • Parameters

    • Default value __namedParameters: object = {}
      • onlySelf: boolean

    Returns void

markAsPending

  • markAsPending(__namedParameters?: object): void
  • Parameters

    • Default value __namedParameters: object = {}
      • onlySelf: boolean

    Returns void

markAsTouched

  • markAsTouched(): void

registerOnChange

  • registerOnChange(fn: Function): void
  • Register a listener for change events.

    Parameters

    • fn: Function

    Returns void

setErrors

  • setErrors(errors: object, __namedParameters?: object): void
  • Sets errors on a control.

    This is used when validations are run not automatically, but manually by the user.

    Calling setErrors will also update the validity of the parent control.

    Usage

    var login = new Control("someLogin");
    login.setErrors({
      "notUnique": true
    });
    
    expect(login.valid).toEqual(false);
    expect(login.errors).toEqual({"notUnique": true});
    
    login.updateValue("someOtherLogin");
    
    expect(login.valid).toEqual(true);
    

    Parameters

    • errors: object
      • [key: string]: any
    • Default value __namedParameters: object = {}
      • emitEvent: boolean

    Returns void

setParent

updateValue

  • updateValue(value: any, __namedParameters?: object): void
  • Set the value of the control to value.

    If onlySelf is true, this change will only affect the validation of this Control and not its parent component. If emitEvent is true, this change will cause a valueChanges event on the Control to be emitted. Both of these options default to false.

    If emitModelToViewChange is true, the view will be notified about the new value via an onChange event. This is the default behavior if emitModelToViewChange is not specified.

    Parameters

    • value: any
    • Default value __namedParameters: object = {}
      • emitEvent: boolean
      • emitModelToViewChange: boolean
      • onlySelf: boolean

    Returns void

updateValueAndValidity

  • updateValueAndValidity(__namedParameters?: object): void
  • Parameters

    • Default value __namedParameters: object = {}
      • emitEvent: boolean
      • onlySelf: boolean

    Returns void

ControlArray

ControlArray:

Defines a part of a form, of variable length, that can contain other controls.

A ControlArray aggregates the values of each Control in the group. The status of a ControlArray depends on the status of its children. If one of the controls in a group is invalid, the entire array is invalid. Similarly, if a control changes its value, the entire array changes as well.

ControlArray is one of the three fundamental building blocks used to define forms in Angular, along with Control and ControlGroup. ControlGroup can also contain other controls, but is of fixed length.

Adding or removing controls

To change the controls in the array, use the push, insert, or removeAt methods in ControlArray itself. These methods ensure the controls are properly tracked in the form's hierarchy. Do not modify the array of AbstractControls used to instantiate the ControlArray directly, as that will result in strange and unexpected behavior such as broken change detection.

Example (live demo)

constructor

_value

_value: any
internal

asyncValidator

asyncValidator: AsyncValidatorFn

controls

controls: AbstractControl[]

validator

validator: ValidatorFn

dirty

dirty:

errors

errors:

Returns the errors of this control.

length

length:

Length of the control array.

pending

pending:

pristine

pristine:

root

root:

status

status:

statusChanges

statusChanges:

touched

touched:

untouched

untouched:

valid

valid:

value

value:

valueChanges

valueChanges:

_anyControlsHaveStatus

  • _anyControlsHaveStatus(status: string): boolean

_initObservables

  • _initObservables(): void

_setParentForControls

  • _setParentForControls(): void
  • internal

    Returns void

_updateControlsErrors

  • _updateControlsErrors(): void

_updateValue

  • _updateValue(): void

at

  • Get the AbstractControl at the given index in the array.

    Parameters

    • index: number

    Returns AbstractControl

find

  • Parameters

    • path: Array<string | number> | string

    Returns AbstractControl

getError

  • getError(errorCode: string, path?: string[]): any
  • Parameters

    • errorCode: string
    • Default value path: string[] = null

    Returns any

hasError

  • hasError(errorCode: string, path?: string[]): boolean
  • Parameters

    • errorCode: string
    • Default value path: string[] = null

    Returns boolean

insert

  • Insert a new AbstractControl at the given index in the array.

    Parameters

    Returns void

markAsDirty

  • markAsDirty(__namedParameters?: object): void
  • Parameters

    • Default value __namedParameters: object = {}
      • onlySelf: boolean

    Returns void

markAsPending

  • markAsPending(__namedParameters?: object): void
  • Parameters

    • Default value __namedParameters: object = {}
      • onlySelf: boolean

    Returns void

markAsTouched

  • markAsTouched(): void

push

  • Insert a new AbstractControl at the end of the array.

    Parameters

    Returns void

removeAt

  • removeAt(index: number): void
  • Remove the control at the given index in the array.

    Parameters

    • index: number

    Returns void

setErrors

  • setErrors(errors: object, __namedParameters?: object): void
  • Sets errors on a control.

    This is used when validations are run not automatically, but manually by the user.

    Calling setErrors will also update the validity of the parent control.

    Usage

    var login = new Control("someLogin");
    login.setErrors({
      "notUnique": true
    });
    
    expect(login.valid).toEqual(false);
    expect(login.errors).toEqual({"notUnique": true});
    
    login.updateValue("someOtherLogin");
    
    expect(login.valid).toEqual(true);
    

    Parameters

    • errors: object
      • [key: string]: any
    • Default value __namedParameters: object = {}
      • emitEvent: boolean

    Returns void

setParent

updateValueAndValidity

  • updateValueAndValidity(__namedParameters?: object): void
  • Parameters

    • Default value __namedParameters: object = {}
      • emitEvent: boolean
      • onlySelf: boolean

    Returns void

ControlGroup

ControlGroup:

Defines a part of a form, of fixed length, that can contain other controls.

A ControlGroup aggregates the values of each Control in the group. The status of a ControlGroup depends on the status of its children. If one of the controls in a group is invalid, the entire group is invalid. Similarly, if a control changes its value, the entire group changes as well.

ControlGroup is one of the three fundamental building blocks used to define forms in Angular, along with Control and ControlArray. ControlArray can also contain other controls, but is of variable length.

Example (live demo)

constructor

_optionals

_optionals: object

Type declaration

  • [key: string]: boolean

_value

_value: any
internal

asyncValidator

asyncValidator: AsyncValidatorFn

controls

controls: object

Type declaration

validator

validator: ValidatorFn

dirty

dirty:

errors

errors:

Returns the errors of this control.

pending

pending:

pristine

pristine:

root

root:

status

status:

statusChanges

statusChanges:

touched

touched:

untouched

untouched:

valid

valid:

value

value:

valueChanges

valueChanges:

_anyControlsHaveStatus

  • _anyControlsHaveStatus(status: string): boolean

_included

  • _included(controlName: string): boolean
  • internal

    Parameters

    • controlName: string

    Returns boolean

_initObservables

  • _initObservables(): void

_reduceChildren

  • _reduceChildren(initValue: any, fn: Function): any
  • internal

    Parameters

    • initValue: any
    • fn: Function

    Returns any

_reduceValue

  • _reduceValue(): any
  • internal

    Returns any

_setParentForControls

  • _setParentForControls(): void
  • internal

    Returns void

_updateControlsErrors

  • _updateControlsErrors(): void

_updateValue

  • _updateValue(): void

addControl

  • Add a control to this group.

    Parameters

    Returns void

contains

  • contains(controlName: string): boolean
  • Check whether there is a control with the given name in the group.

    Parameters

    • controlName: string

    Returns boolean

exclude

  • exclude(controlName: string): void
  • Mark the named control as optional.

    Parameters

    • controlName: string

    Returns void

find

  • Parameters

    • path: Array<string | number> | string

    Returns AbstractControl

getError

  • getError(errorCode: string, path?: string[]): any
  • Parameters

    • errorCode: string
    • Default value path: string[] = null

    Returns any

hasError

  • hasError(errorCode: string, path?: string[]): boolean
  • Parameters

    • errorCode: string
    • Default value path: string[] = null

    Returns boolean

include

  • include(controlName: string): void
  • Mark the named control as non-optional.

    Parameters

    • controlName: string

    Returns void

markAsDirty

  • markAsDirty(__namedParameters?: object): void
  • Parameters

    • Default value __namedParameters: object = {}
      • onlySelf: boolean

    Returns void

markAsPending

  • markAsPending(__namedParameters?: object): void
  • Parameters

    • Default value __namedParameters: object = {}
      • onlySelf: boolean

    Returns void

markAsTouched

  • markAsTouched(): void

removeControl

  • removeControl(name: string): void
  • Remove a control from this group.

    Parameters

    • name: string

    Returns void

setErrors

  • setErrors(errors: object, __namedParameters?: object): void
  • Sets errors on a control.

    This is used when validations are run not automatically, but manually by the user.

    Calling setErrors will also update the validity of the parent control.

    Usage

    var login = new Control("someLogin");
    login.setErrors({
      "notUnique": true
    });
    
    expect(login.valid).toEqual(false);
    expect(login.errors).toEqual({"notUnique": true});
    
    login.updateValue("someOtherLogin");
    
    expect(login.valid).toEqual(true);
    

    Parameters

    • errors: object
      • [key: string]: any
    • Default value __namedParameters: object = {}
      • emitEvent: boolean

    Returns void

setParent

updateValueAndValidity

  • updateValueAndValidity(__namedParameters?: object): void
  • Parameters

    • Default value __namedParameters: object = {}
      • emitEvent: boolean
      • onlySelf: boolean

    Returns void

INVALID

INVALID: string

Indicates that a Control is invalid, i.e. that an error exists in the input value.

PENDING

PENDING: string

Indicates that a Control is pending, i.e. that async validation is occurring and errors are not yet available for the input value.

VALID

VALID: string

Indicates that a Control is valid, i.e. that no errors exist in the input value.

_find

  • Parameters

    Returns AbstractControl

isControl

  • isControl(control: Object): boolean
  • Parameters

    • control: Object

    Returns boolean

toObservable

  • toObservable(r: any): Observable<any>
  • Parameters

    • r: any

    Returns Observable<any>

"node_modules/angular2/ts/src/common/forms/validators"

"node_modules/angular2/ts/src/common/forms/validators":

Validators

Validators:

Provides a set of validators used by form controls.

A validator is a function that processes a Control or collection of controls and returns a map of errors. A null map means that validation has passed.

Example

var loginControl = new Control("", Validators.required)

compose

  • Compose multiple validators into a single function that returns the union of the individual error maps.

    Parameters

    Returns ValidatorFn

composeAsync

maxLength

  • Validator that requires controls to have a value of a maximum length.

    Parameters

    • maxLength: number

    Returns ValidatorFn

minLength

  • Validator that requires controls to have a value of a minimum length.

    Parameters

    • minLength: number

    Returns ValidatorFn

nullValidator

  • No-op validator.

    Parameters

    Returns object

    • [key: string]: boolean

pattern

  • Validator that requires a control to match a regex to its value.

    Parameters

    • pattern: string

    Returns ValidatorFn

required

  • Validator that requires controls to have a non-empty value.

    Parameters

    Returns object

    • [key: string]: boolean

NG_ASYNC_VALIDATORS

NG_ASYNC_VALIDATORS: OpaqueToken

Providers for asynchronous validators to be used for Controls in a form.

Provide this using multi: true to add validators.

See NG_VALIDATORS for more details.

NG_VALIDATORS

NG_VALIDATORS: OpaqueToken

Providers for validators to be used for Controls in a form.

Provide this using multi: true to add validators.

Example

{@example core/forms/ts/ng_validators/ng_validators.ts region='ng_validators'}

_convertToPromise

  • _convertToPromise(obj: any): any
  • Parameters

    • obj: any

    Returns any

_executeAsyncValidators

_executeValidators

  • Parameters

    Returns any[]

_mergeErrors

  • _mergeErrors(arrayOfErrors: any[]): object
  • Parameters

    • arrayOfErrors: any[]

    Returns object

    • [key: string]: any

"node_modules/angular2/ts/src/common/pipes"

"node_modules/angular2/ts/src/common/pipes":

"node_modules/angular2/ts/src/common/pipes/async_pipe"

"node_modules/angular2/ts/src/common/pipes/async_pipe":

AsyncPipe

AsyncPipe:

The async pipe subscribes to an Observable or Promise and returns the latest value it has emitted. When a new value is emitted, the async pipe marks the component to be checked for changes.

Example

This example binds a Promise to the view. Clicking the Resolve button resolves the promise.

{@example core/pipes/ts/async_pipe/async_pipe_example.ts region='AsyncPipe'}

It's also possible to use async with Observables. The example below binds the time Observable to the view. Every 500ms, the time Observable updates the view with the current time.


constructor

  • new AsyncPipe(_ref: ChangeDetectorRef): AsyncPipe
  • Parameters

    • _ref: ChangeDetectorRef

    Returns AsyncPipe

_latestReturnedValue

_latestReturnedValue: Object
internal

_latestValue

_latestValue: Object
internal

_obj

_obj: Observable<any> | Promise<any> | EventEmitter<any>
internal

_ref

_ref: ChangeDetectorRef
internal

_strategy

_strategy: any

_subscription

_subscription: Object
internal

_dispose

  • _dispose(): void
  • internal

    Returns void

_selectStrategy

  • _selectStrategy(obj: Observable<any> | Promise<any> | EventEmitter<any>): any
  • internal

    Parameters

    • obj: Observable<any> | Promise<any> | EventEmitter<any>

    Returns any

_subscribe

  • _subscribe(obj: Observable<any> | Promise<any> | EventEmitter<any>): void
  • internal

    Parameters

    • obj: Observable<any> | Promise<any> | EventEmitter<any>

    Returns void

_updateLatestValue

  • _updateLatestValue(async: any, value: Object): void
  • internal

    Parameters

    • async: any
    • value: Object

    Returns void

ngOnDestroy

  • ngOnDestroy(): void
  • Returns void

transform

  • transform(obj: Observable<any> | Promise<any> | EventEmitter<any>, args?: any[]): any
  • Parameters

    • obj: Observable<any> | Promise<any> | EventEmitter<any>
    • Optional args: any[]

    Returns any

ObservableStrategy

ObservableStrategy:

createSubscription

  • createSubscription(async: any, updateLatestValue: any): any
  • Parameters

    • async: any
    • updateLatestValue: any

    Returns any

dispose

  • dispose(subscription: any): void
  • Parameters

    • subscription: any

    Returns void

onDestroy

  • onDestroy(subscription: any): void
  • Parameters

    • subscription: any

    Returns void

PromiseStrategy

PromiseStrategy:

createSubscription

  • createSubscription(async: Promise<any>, updateLatestValue: function): any
  • Parameters

    • async: Promise<any>
    • updateLatestValue: function
        • (v: any): any
        • Parameters

          • v: any

          Returns any

    Returns any

dispose

  • dispose(subscription: any): void
  • Parameters

    • subscription: any

    Returns void

onDestroy

  • onDestroy(subscription: any): void
  • Parameters

    • subscription: any

    Returns void

___unused

___unused: Promise<any>

_observableStrategy

_observableStrategy: ObservableStrategy

_promiseStrategy

_promiseStrategy: PromiseStrategy

"node_modules/angular2/ts/src/common/pipes/common_pipes"

"node_modules/angular2/ts/src/common/pipes/common_pipes":

COMMON_PIPES

COMMON_PIPES: Array<AsyncPipe | UpperCasePipe | SlicePipe | ReplacePipe>

A collection of Angular core pipes that are likely to be used in each and every application.

This collection can be used to quickly enumerate all the built-in pipes in the pipes property of the @Component decorator.

"node_modules/angular2/ts/src/common/pipes/date_pipe"

"node_modules/angular2/ts/src/common/pipes/date_pipe":

DatePipe

DatePipe:

Formats a date value to a string based on the requested format.

WARNINGS:

  • this pipe is marked as pure hence it will not be re-evaluated when the input is mutated. Instead users should treat the date as an immutable object and change the reference when the pipe needs to re-run (this is to avoid reformatting the date on every change detection run which would be an expensive operation).
  • this pipe uses the Internationalization API. Therefore it is only reliable in Chrome and Opera browsers.

Usage

expression | date[:format]

where expression is a date object or a number (milliseconds since UTC epoch) and format indicates which date/time components to include:

Component Symbol Short Form Long Form Numeric 2-digit
era G G (AD) GGGG (Anno Domini) - -
year y - - y (2015) yy (15)
month M MMM (Sep) MMMM (September) M (9) MM (09)
day d - - d (3) dd (03)
weekday E EEE (Sun) EEEE (Sunday) - -
hour j - - j (13) jj (13)
hour12 h - - h (1 PM) hh (01 PM)
hour24 H - - H (13) HH (13)
minute m - - m (5) mm (05)
second s - - s (9) ss (09)
timezone z - z (Pacific Standard Time) - -
timezone Z Z (GMT-8:00) - - -

In javascript, only the components specified will be respected (not the ordering, punctuations, ...) and details of the formatting will be dependent on the locale. On the other hand in Dart version, you can also include quoted text as well as some extra date/time components such as quarter. For more information see: https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/intl/intl.DateFormat.

format can also be one of the following predefined formats:

  • 'medium': equivalent to 'yMMMdjms' (e.g. Sep 3, 2010, 12:05:08 PM for en-US)
  • 'short': equivalent to 'yMdjm' (e.g. 9/3/2010, 12:05 PM for en-US)
  • 'fullDate': equivalent to 'yMMMMEEEEd' (e.g. Friday, September 3, 2010 for en-US)
  • 'longDate': equivalent to 'yMMMMd' (e.g. September 3, 2010)
  • 'mediumDate': equivalent to 'yMMMd' (e.g. Sep 3, 2010 for en-US)
  • 'shortDate': equivalent to 'yMd' (e.g. 9/3/2010 for en-US)
  • 'mediumTime': equivalent to 'jms' (e.g. 12:05:08 PM for en-US)
  • 'shortTime': equivalent to 'jm' (e.g. 12:05 PM for en-US)

Timezone of the formatted text will be the local system timezone of the end-users machine.

Examples

Assuming dateObj is (year: 2015, month: 6, day: 15, hour: 21, minute: 43, second: 11) in the local time and locale is 'en-US':

    {{ dateObj | date }}               // output is 'Jun 15, 2015'
    {{ dateObj | date:'medium' }}      // output is 'Jun 15, 2015, 9:43:11 PM'
    {{ dateObj | date:'shortTime' }}   // output is '9:43 PM'
    {{ dateObj | date:'mmss' }}        // output is '43:11'

{@example core/pipes/ts/date_pipe/date_pipe_example.ts region='DatePipe'}

supports

  • supports(obj: any): boolean
  • Parameters

    • obj: any

    Returns boolean

transform

  • transform(value: any, args: any[]): string
  • Parameters

    • value: any
    • args: any[]

    Returns string

_ALIASES

_ALIASES: object
internal

fullDate

fullDate: string

longDate

longDate: string

medium

medium: string

mediumDate

mediumDate: string

mediumTime

mediumTime: string

short

short: string

shortDate

shortDate: string

shortTime

shortTime: string

defaultLocale

defaultLocale: string

"node_modules/angular2/ts/src/common/pipes/i18n_plural_pipe"

"node_modules/angular2/ts/src/common/pipes/i18n_plural_pipe":

I18nPluralPipe

I18nPluralPipe:

Maps a value to a string that pluralizes the value properly.

Usage

expression | i18nPlural:mapping

where expression is a number and mapping is an object that indicates the proper text for when the expression evaluates to 0, 1, or some other number. You can interpolate the actual value into the text using the # sign.

Example

 <div>
   {{ messages.length | i18nPlural: messageMapping }}
 </div>

 class MyApp {
   messages: any[];
   messageMapping: any = {
     '=0': 'No messages.',
     '=1': 'One message.',
     'other': '# messages.'
   }
   ...
 }

transform

  • transform(value: number, args?: any[]): string
  • Parameters

    • value: number
    • Default value args: any[] = null

    Returns string

interpolationExp

interpolationExp: RegExp

"node_modules/angular2/ts/src/common/pipes/i18n_select_pipe"

"node_modules/angular2/ts/src/common/pipes/i18n_select_pipe":

I18nSelectPipe

I18nSelectPipe:

Generic selector that displays the string that matches the current value.

Usage

expression | i18nSelect:mapping

where mapping is an object that indicates the text that should be displayed for different values of the provided expression.

Example

 <div>
   {{ gender | i18nSelect: inviteMap }}
 </div>

 class MyApp {
   gender: string = 'male';
   inviteMap: any = {
     'male': 'Invite her.',
     'female': 'Invite him.',
     'other': 'Invite them.'
   }
   ...
 }

transform

  • transform(value: string, args?: any[]): string
  • Parameters

    • value: string
    • Default value args: any[] = null

    Returns string

"node_modules/angular2/ts/src/common/pipes/invalid_pipe_argument_exception"

"node_modules/angular2/ts/src/common/pipes/invalid_pipe_argument_exception":

InvalidPipeArgumentException

InvalidPipeArgumentException:

constructor

  • Parameters

    • type: Type
    • value: Object

    Returns InvalidPipeArgumentException

message

message: string

stack

stack: any

message

message: string

name

name: string

stack

stack: string

toString

  • toString(): string
  • Returns string

"node_modules/angular2/ts/src/common/pipes/json_pipe"

"node_modules/angular2/ts/src/common/pipes/json_pipe":

JsonPipe

JsonPipe:

Transforms any input value using JSON.stringify. Useful for debugging.

Example

{@example core/pipes/ts/json_pipe/json_pipe_example.ts region='JsonPipe'}

transform

  • transform(value: any, args?: any[]): string
  • Parameters

    • value: any
    • Default value args: any[] = null

    Returns string

"node_modules/angular2/ts/src/common/pipes/lowercase_pipe"

"node_modules/angular2/ts/src/common/pipes/lowercase_pipe":

LowerCasePipe

LowerCasePipe:

Transforms text to lowercase.

Example

{@example core/pipes/ts/lowerupper_pipe/lowerupper_pipe_example.ts region='LowerUpperPipe'}

transform

  • transform(value: string, args?: any[]): string
  • Parameters

    • value: string
    • Default value args: any[] = null

    Returns string

"node_modules/angular2/ts/src/common/pipes/number_pipe"

"node_modules/angular2/ts/src/common/pipes/number_pipe":

CurrencyPipe

CurrencyPipe:

WARNING: this pipe uses the Internationalization API. Therefore it is only reliable in Chrome and Opera browsers.

Formats a number as local currency.

Usage

expression | currency[:currencyCode[:symbolDisplay[:digitInfo]]]

where currencyCode is the ISO 4217 currency code, such as "USD" for the US dollar and "EUR" for the euro. symbolDisplay is a boolean indicating whether to use the currency symbol (e.g. $) or the currency code (e.g. USD) in the output. The default for this value is false. For more information about digitInfo see DecimalPipe

Example

{@example core/pipes/ts/number_pipe/number_pipe_example.ts region='CurrencyPipe'}

transform

  • transform(value: any, args: any[]): string
  • Parameters

    • value: any
    • args: any[]

    Returns string

_format

  • _format(value: number, style: NumberFormatStyle, digits: string, currency?: string, currencyAsSymbol?: boolean): string
  • internal

    Parameters

    • value: number
    • style: NumberFormatStyle
    • digits: string
    • Default value currency: string = null
    • Default value currencyAsSymbol: boolean = false

    Returns string

DecimalPipe

DecimalPipe:

WARNING: this pipe uses the Internationalization API. Therefore it is only reliable in Chrome and Opera browsers.

Formats a number as local text. i.e. group sizing and separator and other locale-specific configurations are based on the active locale.

Usage

expression | number[:digitInfo]

where expression is a number and digitInfo has the following format:

{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}
  • minIntegerDigits is the minimum number of integer digits to use. Defaults to 1.
  • minFractionDigits is the minimum number of digits after fraction. Defaults to 0.
  • maxFractionDigits is the maximum number of digits after fraction. Defaults to 3.

For more information on the acceptable range for each of these numbers and other details see your native internationalization library.

Example

{@example core/pipes/ts/number_pipe/number_pipe_example.ts region='NumberPipe'}

transform

  • transform(value: any, args: any[]): string
  • Parameters

    • value: any
    • args: any[]

    Returns string

_format

  • _format(value: number, style: NumberFormatStyle, digits: string, currency?: string, currencyAsSymbol?: boolean): string
  • internal

    Parameters

    • value: number
    • style: NumberFormatStyle
    • digits: string
    • Default value currency: string = null
    • Default value currencyAsSymbol: boolean = false

    Returns string

NumberPipe

NumberPipe:

Internal base class for numeric pipes.

_format

  • _format(value: number, style: NumberFormatStyle, digits: string, currency?: string, currencyAsSymbol?: boolean): string
  • internal

    Parameters

    • value: number
    • style: NumberFormatStyle
    • digits: string
    • Default value currency: string = null
    • Default value currencyAsSymbol: boolean = false

    Returns string

PercentPipe

PercentPipe:

WARNING: this pipe uses the Internationalization API. Therefore it is only reliable in Chrome and Opera browsers.

Formats a number as local percent.

Usage

expression | percent[:digitInfo]

For more information about digitInfo see DecimalPipe

Example

{@example core/pipes/ts/number_pipe/number_pipe_example.ts region='PercentPipe'}

transform

  • transform(value: any, args: any[]): string
  • Parameters

    • value: any
    • args: any[]

    Returns string

_format

  • _format(value: number, style: NumberFormatStyle, digits: string, currency?: string, currencyAsSymbol?: boolean): string
  • internal

    Parameters

    • value: number
    • style: NumberFormatStyle
    • digits: string
    • Default value currency: string = null
    • Default value currencyAsSymbol: boolean = false

    Returns string

_re

_re: RegExp

defaultLocale

defaultLocale: string

"node_modules/angular2/ts/src/common/pipes/replace_pipe"

"node_modules/angular2/ts/src/common/pipes/replace_pipe":

ReplacePipe

ReplacePipe:

Creates a new String with some or all of the matches of a pattern replaced by a replacement.

The pattern to be matched is specified by the 'pattern' parameter.

The replacement to be set is specified by the 'replacement' parameter.

An optional 'flags' parameter can be set.

Usage

expression | replace:pattern:replacement

All behavior is based on the expected behavior of the JavaScript API String.prototype.replace() function.

Where the input expression is a [String] or [Number] (to be treated as a string), the pattern is a [String] or [RegExp], the 'replacement' is a [String] or [Function].

--Note--: The 'pattern' parameter will be converted to a RegExp instance. Make sure to escape the string properly if you are matching for regular expression special characters like parenthesis, brackets etc.

_supportedInput

  • _supportedInput(input: any): boolean
  • Parameters

    • input: any

    Returns boolean

_supportedPattern

  • _supportedPattern(pattern: any): boolean
  • Parameters

    • pattern: any

    Returns boolean

_supportedReplacement

  • _supportedReplacement(replacement: any): boolean
  • Parameters

    • replacement: any

    Returns boolean

transform

  • transform(value: any, args: any[]): any
  • Parameters

    • value: any
    • args: any[]

    Returns any

"node_modules/angular2/ts/src/common/pipes/slice_pipe"

"node_modules/angular2/ts/src/common/pipes/slice_pipe":

SlicePipe

SlicePipe:

Creates a new List or String containing only a subset (slice) of the elements.

The starting index of the subset to return is specified by the start parameter.

The ending index of the subset to return is specified by the optional end parameter.

Usage

expression | slice:start[:end]

All behavior is based on the expected behavior of the JavaScript API Array.prototype.slice() and String.prototype.slice()

Where the input expression is a [List] or [String], and start is:

  • a positive integer: return the item at start index and all items after in the list or string expression.
  • a negative integer: return the item at start index from the end and all items after in the list or string expression.
  • |start| greater than the size of the expression: return an empty list or string.
  • |start| negative greater than the size of the expression: return entire list or string expression.

and where end is:

  • omitted: return all items until the end of the input
  • a positive integer: return all items before end index of the list or string expression.
  • a negative integer: return all items before end index from the end of the list or string expression.

When operating on a [List], the returned list is always a copy even when all the elements are being returned.

List Example

This ngFor example:

{@example core/pipes/ts/slice_pipe/slice_pipe_example.ts region='SlicePipe_list'}

produces the following:

<li>b</li>
<li>c</li>

String Examples

{@example core/pipes/ts/slice_pipe/slice_pipe_example.ts region='SlicePipe_string'}

supports

  • supports(obj: any): boolean
  • Parameters

    • obj: any

    Returns boolean

transform

  • transform(value: any, args?: any[]): any
  • Parameters

    • value: any
    • Default value args: any[] = null

    Returns any

"node_modules/angular2/ts/src/common/pipes/uppercase_pipe"

"node_modules/angular2/ts/src/common/pipes/uppercase_pipe":

UpperCasePipe

UpperCasePipe:

Implements uppercase transforms to text.

Example

{@example core/pipes/ts/lowerupper_pipe/lowerupper_pipe_example.ts region='LowerUpperPipe'}

transform

  • transform(value: string, args?: any[]): string
  • Parameters

    • value: string
    • Default value args: any[] = null

    Returns string

"node_modules/angular2/ts/src/compiler/assertions"

"node_modules/angular2/ts/src/compiler/assertions":

assertArrayOfStrings

  • assertArrayOfStrings(identifier: string, value: any): void
  • Parameters

    • identifier: string
    • value: any

    Returns void

"node_modules/angular2/ts/src/compiler/change_definition_factory"

"node_modules/angular2/ts/src/compiler/change_definition_factory":

ProtoViewVisitor

ProtoViewVisitor:

constructor

allVisitors

allVisitors: ProtoViewVisitor[]

bindingRecords

bindingRecords: BindingRecord[]

boundElementCount

boundElementCount: number

directiveRecords

directiveRecords: DirectiveRecord[]

eventRecords

eventRecords: BindingRecord[]

nodeCount

nodeCount: number

parent

strategy

strategy: ChangeDetectionStrategy

variableNames

variableNames: string[]

viewIndex

viewIndex: number

visitAttr

  • visitAttr(ast: AttrAst, context: any): any
  • Parameters

    Returns any

visitBoundText

visitDirective

  • visitDirective(ast: DirectiveAst, directiveIndexAsNumber: number): any
  • Parameters

    Returns any

visitDirectiveProperty

  • Parameters

    Returns any

visitElement

  • visitElement(ast: ElementAst, context: any): any

visitElementProperty

  • Parameters

    Returns any

visitEmbeddedTemplate

visitEvent

  • visitEvent(ast: BoundEventAst, directiveRecord: DirectiveRecord): any
  • Parameters

    Returns any

visitNgContent

visitText

  • visitText(ast: TextAst, context: any): any
  • Parameters

    Returns any

visitVariable

_collectNestedProtoViewsVariableNames

  • _collectNestedProtoViewsVariableNames(pvVisitors: ProtoViewVisitor[]): string[]
  • Parameters

    Returns string[]

createChangeDefinitions

  • Parameters

    Returns ChangeDetectorDefinition[]

createChangeDetectorDefinitions

  • createChangeDetectorDefinitions(componentType: CompileTypeMetadata, componentStrategy: ChangeDetectionStrategy, genConfig: ChangeDetectorGenConfig, parsedTemplate: TemplateAst[]): ChangeDetectorDefinition[]
  • Parameters

    Returns ChangeDetectorDefinition[]

"node_modules/angular2/ts/src/compiler/change_detector_compiler"

"node_modules/angular2/ts/src/compiler/change_detector_compiler":

ChangeDetectionCompiler

ChangeDetectionCompiler:

constructor

  • Parameters

    • _genConfig: ChangeDetectorGenConfig

    Returns ChangeDetectionCompiler

_genConfig

_genConfig: ChangeDetectorGenConfig

_createChangeDetectorFactory

  • _createChangeDetectorFactory(definition: ChangeDetectorDefinition): Function
  • Parameters

    • definition: ChangeDetectorDefinition

    Returns Function

compileComponentCodeGen

compileComponentRuntime

  • Parameters

    Returns Function[]

ABSTRACT_CHANGE_DETECTOR

ABSTRACT_CHANGE_DETECTOR: string

ABSTRACT_CHANGE_DETECTOR_MODULE

ABSTRACT_CHANGE_DETECTOR_MODULE: string

CHANGE_DETECTION_JIT_IMPORTS

CHANGE_DETECTION_JIT_IMPORTS: object

Type declaration

  • AbstractChangeDetector: AbstractChangeDetector
  • ChangeDetectionUtil: ChangeDetectionUtil
  • ChangeDetectorState: ChangeDetectorState

CHANGE_DETECTOR_STATE

CHANGE_DETECTOR_STATE: string

CONSTANTS_MODULE

CONSTANTS_MODULE: string

PREGEN_PROTO_CHANGE_DETECTOR_MODULE

PREGEN_PROTO_CHANGE_DETECTOR_MODULE: string

UTIL

UTIL: string

UTIL_MODULE

UTIL_MODULE: string

"node_modules/angular2/ts/src/compiler/chars"

"node_modules/angular2/ts/src/compiler/chars":

$$

$$: number

$0

$0: number

$9

$9: number

$A

$A: number

$AMPERSAND

$AMPERSAND: number

$AT

$AT: number

$BACKSLASH

$BACKSLASH: number

$BANG

$BANG: number

$BAR

$BAR: number

$CARET

$CARET: number

$COLON

$COLON: number

$COMMA

$COMMA: number

$CR

$CR: number

$DQ

$DQ: number

$E

$E: number

$EOF

$EOF: number

$EQ

$EQ: number

$FF

$FF: number

$GT

$GT: number

$HASH

$HASH: number

$LBRACE

$LBRACE: number

$LBRACKET

$LBRACKET: number

$LF

$LF: number

$LPAREN

$LPAREN: number

$LT

$LT: number

$MINUS

$MINUS: number

$NBSP

$NBSP: number

$PERCENT

$PERCENT: number

$PERIOD

$PERIOD: number

$PIPE

$PIPE: number

$PLUS

$PLUS: number

$QUESTION

$QUESTION: number

$RBRACE

$RBRACE: number

$RBRACKET

$RBRACKET: number

$RPAREN

$RPAREN: number

$SEMICOLON

$SEMICOLON: number

$SLASH

$SLASH: number

$SPACE

$SPACE: number

$SQ

$SQ: number

$STAR

$STAR: number

$TAB

$TAB: number

$TILDA

$TILDA: number

$VTAB

$VTAB: number

$Z

$Z: number

$_

$_: number

$a

$a: number

$e

$e: number

$f

$f: number

$n

$n: number

$r

$r: number

$t

$t: number

$u

$u: number

$v

$v: number

$z

$z: number

isWhitespace

  • isWhitespace(code: number): boolean
  • Parameters

    • code: number

    Returns boolean

"node_modules/angular2/ts/src/compiler/compiler"

"node_modules/angular2/ts/src/compiler/compiler":

COMPILER_PROVIDERS

COMPILER_PROVIDERS: Array<Type | Provider | any[]>

A set of providers that provide RuntimeCompiler and its dependencies to use for template compilation.

_createChangeDetectorGenConfig

  • _createChangeDetectorGenConfig(): ChangeDetectorGenConfig
  • Returns ChangeDetectorGenConfig

"node_modules/angular2/ts/src/compiler/css/lexer"

"node_modules/angular2/ts/src/compiler/css/lexer":

CssLexerMode

CssLexerMode:

ALL

ALL:

ALL_TRACK_WS

ALL_TRACK_WS:

ATTRIBUTE_SELECTOR

ATTRIBUTE_SELECTOR:

AT_RULE_QUERY

AT_RULE_QUERY:

BLOCK

BLOCK:

KEYFRAME_BLOCK

KEYFRAME_BLOCK:

MEDIA_QUERY

MEDIA_QUERY:

PSEUDO_SELECTOR

PSEUDO_SELECTOR:

SELECTOR

SELECTOR:

STYLE_BLOCK

STYLE_BLOCK:

STYLE_CALC_FUNCTION

STYLE_CALC_FUNCTION:

STYLE_VALUE

STYLE_VALUE:

STYLE_VALUE_FUNCTION

STYLE_VALUE_FUNCTION:

CssTokenType

CssTokenType:

AtKeyword

AtKeyword:

Character

Character:

Comment

Comment:

EOF

EOF:

Identifier

Identifier:

IdentifierOrNumber

IdentifierOrNumber:

Invalid

Invalid:

Number

Number:

String

String:

Whitespace

Whitespace:

CssLexer

CssLexer:

scan

  • scan(text: string, trackComments?: boolean): CssScanner
  • Parameters

    • text: string
    • Default value trackComments: boolean = false

    Returns CssScanner

CssScanner

CssScanner:

constructor

  • new CssScanner(input: string, _trackComments?: boolean): CssScanner
  • Parameters

    • input: string
    • Default value _trackComments: boolean = false

    Returns CssScanner

_currentError

_currentError: CssScannerError

_currentMode

_currentMode: CssLexerMode

_trackComments

_trackComments: boolean

column

column: number

index

index: number

input

input: string

length

length: number

line

line: number

peek

peek: number

peekPeek

peekPeek: number

_scan

  • Returns CssToken

advance

  • advance(): void
  • Returns void

assertCondition

  • assertCondition(status: boolean, errorMessage: string): boolean
  • Parameters

    • status: boolean
    • errorMessage: string

    Returns boolean

consume

  • Parameters

    Returns LexedCssResult

consumeEmptyStatements

  • consumeEmptyStatements(): void
  • Returns void

consumeWhitespace

  • consumeWhitespace(): void
  • Returns void

error

  • error(message: string, errorTokenValue?: string, doNotAdvance?: boolean): CssToken
  • Parameters

    • message: string
    • Default value errorTokenValue: string = null
    • Default value doNotAdvance: boolean = false

    Returns CssToken

getMode

  • Returns CssLexerMode

peekAt

  • peekAt(index: any): number
  • Parameters

    • index: any

    Returns number

scan

  • Returns LexedCssResult

scanAtExpression

  • Returns CssToken

scanCharacter

  • Returns CssToken

scanComment

  • Returns CssToken

scanCssValueFunction

  • Returns CssToken

scanIdentifier

  • Returns CssToken

scanNumber

  • Returns CssToken

scanString

  • Returns CssToken

scanWhitespace

  • Returns CssToken

setMode

  • Parameters

    Returns void

CssScannerError

CssScannerError:

constructor

  • Parameters

    Returns CssScannerError

message

message: string

rawMessage

rawMessage: string

stack

stack: any

token

token: CssToken

message

message: string

name

name: string

stack

stack: string

toString

  • toString(): string
  • Returns string

CssToken

CssToken:

constructor

  • new CssToken(index: number, column: number, line: number, type: CssTokenType, strValue: string): CssToken
  • Parameters

    • index: number
    • column: number
    • line: number
    • type: CssTokenType
    • strValue: string

    Returns CssToken

column

column: number

index

index: number

line

line: number

numValue

numValue: number

strValue

strValue: string

type

LexedCssResult

LexedCssResult:

constructor

error

token

token: CssToken

_trackWhitespace

  • Parameters

    Returns boolean

charCode

  • charCode(input: any, index: any): number
  • Parameters

    • input: any
    • index: any

    Returns number

charStr

  • charStr(code: number): string
  • Parameters

    • code: number

    Returns string

findProblemCode

  • findProblemCode(input: any, errorValue: any, index: any, column: any): string
  • Parameters

    • input: any
    • errorValue: any
    • index: any
    • column: any

    Returns string

generateErrorMessage

  • generateErrorMessage(input: any, message: any, errorValue: any, index: any, row: any, column: any): string
  • Parameters

    • input: any
    • message: any
    • errorValue: any
    • index: any
    • row: any
    • column: any

    Returns string

isAtKeyword

  • Parameters

    Returns boolean

isCharMatch

  • isCharMatch(target: number, previous: number, code: number): boolean
  • Parameters

    • target: number
    • previous: number
    • code: number

    Returns boolean

isCommentEnd

  • isCommentEnd(code: number, next: number): boolean
  • Parameters

    • code: number
    • next: number

    Returns boolean

isCommentStart

  • isCommentStart(code: number, next: number): boolean
  • Parameters

    • code: number
    • next: number

    Returns boolean

isDigit

  • isDigit(code: number): boolean
  • Parameters

    • code: number

    Returns boolean

isIdentifierPart

  • isIdentifierPart(target: number): boolean
  • Parameters

    • target: number

    Returns boolean

isIdentifierStart

  • isIdentifierStart(code: number, next: number): boolean
  • Parameters

    • code: number
    • next: number

    Returns boolean

isNewline

  • isNewline(code: any): boolean
  • Parameters

    • code: any

    Returns boolean

isStringStart

  • isStringStart(code: number, next: number): boolean
  • Parameters

    • code: number
    • next: number

    Returns boolean

isValidAtRuleCharacter

  • isValidAtRuleCharacter(code: number): boolean
  • Parameters

    • code: number

    Returns boolean

isValidAttributeSelectorCharacter

  • isValidAttributeSelectorCharacter(code: number): boolean
  • Parameters

    • code: number

    Returns boolean

isValidBlockCharacter

  • isValidBlockCharacter(code: number): boolean
  • Parameters

    • code: number

    Returns boolean

isValidCssCharacter

  • isValidCssCharacter(code: number, mode: CssLexerMode): boolean
  • Parameters

    Returns boolean

isValidKeyframeBlockCharacter

  • isValidKeyframeBlockCharacter(code: number): boolean
  • Parameters

    • code: number

    Returns boolean

isValidMediaQueryRuleCharacter

  • isValidMediaQueryRuleCharacter(code: number): boolean
  • Parameters

    • code: number

    Returns boolean

isValidPseudoSelectorCharacter

  • isValidPseudoSelectorCharacter(code: number): boolean
  • Parameters

    • code: number

    Returns boolean

isValidSelectorCharacter

  • isValidSelectorCharacter(code: number): boolean
  • Parameters

    • code: number

    Returns boolean

isValidStyleBlockCharacter

  • isValidStyleBlockCharacter(code: number): boolean
  • Parameters

    • code: number

    Returns boolean

isValidStyleFunctionCharacter

  • isValidStyleFunctionCharacter(code: number): boolean
  • Parameters

    • code: number

    Returns boolean

"node_modules/angular2/ts/src/compiler/css/parser"

"node_modules/angular2/ts/src/compiler/css/parser":

BlockType

BlockType:

Charset

Charset:

Document

Document:

FontFace

FontFace:

Import

Import:

Keyframes

Keyframes:

MediaQuery

MediaQuery:

Namespace

Namespace:

Page

Page:

Selector

Selector:

Supports

Supports:

Unsupported

Unsupported:

Viewport

Viewport:

CssAST

CssAST:

visit

  • Parameters

    Returns void

CssBlockAST

CssBlockAST:

constructor

  • Parameters

    Returns CssBlockAST

entries

entries: CssAST[]

visit

  • Parameters

    Returns void

CssBlockDefinitionRuleAST

CssBlockDefinitionRuleAST:

constructor

block

name

name: CssToken

query

query: CssToken[]

strValue

strValue: string

type

type: BlockType

visit

  • Parameters

    Returns void

CssBlockRuleAST

CssBlockRuleAST:

constructor

  • Parameters

    Returns CssBlockRuleAST

block

name

name: CssToken

type

type: BlockType

visit

  • Parameters

    Returns void

CssDefinitionAST

CssDefinitionAST:

constructor

property

property: CssToken

value

visit

  • Parameters

    Returns void

CssInlineRuleAST

CssInlineRuleAST:

constructor

type

type: BlockType

value

visit

  • Parameters

    Returns void

CssKeyframeDefinitionAST

CssKeyframeDefinitionAST:

constructor

block

name

name: CssToken

steps

steps: any

type

type: BlockType

visit

  • Parameters

    Returns void

CssKeyframeRuleAST

CssKeyframeRuleAST:

constructor

block

name

name: CssToken

type

type: BlockType

visit

  • Parameters

    Returns void

CssMediaQueryRuleAST

CssMediaQueryRuleAST:

constructor

block

name

name: CssToken

query

query: CssToken[]

strValue

strValue: string

type

type: BlockType

visit

CssParseError

CssParseError:

constructor

  • new CssParseError(span: ParseSourceSpan, message: string): CssParseError
  • Parameters

    • span: ParseSourceSpan
    • message: string

    Returns CssParseError

msg

msg: string

span

span: ParseSourceSpan

toString

  • toString(): string
  • Returns string

create

  • create(file: ParseSourceFile, offset: number, line: number, col: number, length: number, errMsg: string): CssParseError
  • Parameters

    • file: ParseSourceFile
    • offset: number
    • line: number
    • col: number
    • length: number
    • errMsg: string

    Returns CssParseError

CssParser

CssParser:

constructor

  • new CssParser(_scanner: CssScanner, _fileName: string): CssParser
  • Parameters

    • _scanner: CssScanner
    • _fileName: string

    Returns CssParser

_errors

_errors: CssParseError[]

_file

_file: ParseSourceFile

_fileName

_fileName: string

_scanner

_scanner: CssScanner

_assertCondition

  • _assertCondition(status: boolean, errorMessage: string, problemToken: CssToken): boolean
  • Parameters

    • status: boolean
    • errorMessage: string
    • problemToken: CssToken

    Returns boolean

_collectUntilDelim

  • _collectUntilDelim(delimiters: number, assertType?: CssTokenType): CssToken[]
  • Parameters

    • delimiters: number
    • Default value assertType: CssTokenType = null

    Returns CssToken[]

_consume

  • _consume(type: CssTokenType, value?: string): CssToken
  • Parameters

    • type: CssTokenType
    • Default value value: string = null

    Returns CssToken

_error

  • _error(message: string, problemToken: CssToken): void
  • Parameters

    • message: string
    • problemToken: CssToken

    Returns void

_parseAtRule

  • Parameters

    • delimiters: number

    Returns CssRuleAST

_parseBlock

  • Parameters

    • delimiters: number

    Returns CssBlockAST

_parseDefinition

  • Parameters

    • delimiters: number

    Returns CssDefinitionAST

_parseKeyframeBlock

  • Parameters

    • delimiters: number

    Returns CssBlockAST

_parseKeyframeDefinition

  • Parameters

    • delimiters: number

    Returns CssKeyframeDefinitionAST

_parseKeyframeLabel

  • _parseKeyframeLabel(delimiters: number): CssToken
  • Parameters

    • delimiters: number

    Returns CssToken

_parseRule

  • Parameters

    • delimiters: number

    Returns CssRuleAST

_parseSelector

  • Parameters

    • delimiters: number

    Returns CssSelectorAST

_parseSelectorRule

  • Parameters

    • delimiters: number

    Returns CssSelectorRuleAST

_parseSelectors

  • Parameters

    • delimiters: number

    Returns CssSelectorAST[]

_parseStyleBlock

  • Parameters

    • delimiters: number

    Returns CssBlockAST

_parseStyleSheet

  • Parameters

    • delimiters: any

    Returns CssStyleSheetAST

_parseValue

  • Parameters

    • delimiters: number

    Returns CssStyleValueAST

_resolveBlockType

  • _resolveBlockType(token: CssToken): BlockType
  • Parameters

    • token: CssToken

    Returns BlockType

_scan

  • _scan(): CssToken
  • Returns CssToken

parse

  • Returns ParsedCssResult

CssRuleAST

CssRuleAST:

visit

  • Parameters

    Returns void

CssSelectorAST

CssSelectorAST:

constructor

  • new CssSelectorAST(tokens: CssToken[], isComplex?: boolean): CssSelectorAST
  • Parameters

    • tokens: CssToken[]
    • Default value isComplex: boolean = false

    Returns CssSelectorAST

isComplex

isComplex: boolean

strValue

strValue: any

tokens

tokens: CssToken[]

visit

  • Parameters

    Returns void

CssSelectorRuleAST

CssSelectorRuleAST:

constructor

block

name

name: CssToken

selectors

selectors: CssSelectorAST[]

strValue

strValue: string

type

type: BlockType

visit

  • Parameters

    Returns void

CssStyleSheetAST

CssStyleSheetAST:

constructor

  • Parameters

    Returns CssStyleSheetAST

rules

rules: CssAST[]

visit

  • Parameters

    Returns void

CssStyleValueAST

CssStyleValueAST:

constructor

  • Parameters

    • tokens: CssToken[]
    • strValue: string

    Returns CssStyleValueAST

strValue

strValue: string

tokens

tokens: CssToken[]

visit

  • Parameters

    Returns void

CssUnknownTokenListAST

CssUnknownTokenListAST:

constructor

  • Parameters

    • name: any
    • tokens: CssToken[]

    Returns CssUnknownTokenListAST

name

name: any

tokens

tokens: CssToken[]

visit

  • Parameters

    Returns void

ParsedCssResult

ParsedCssResult:

constructor

ast

errors

errors: CssParseError[]

CssASTVisitor

CssASTVisitor:

visitCssBlock

  • Parameters

    Returns void

visitCssDefinition

  • Parameters

    Returns void

visitCssKeyframeDefinition

  • Parameters

    Returns void

visitCssKeyframeRule

  • Parameters

    Returns void

visitCssMediaQueryRule

  • Parameters

    Returns void

visitCssSelector

  • Parameters

    Returns void

visitCssSelectorRule

  • Parameters

    Returns void

visitCssStyleSheet

  • Parameters

    Returns void

visitCssValue

  • Parameters

    Returns void

visitInlineCssRule

  • Parameters

    Returns void

visitUnkownRule

  • Parameters

    Returns void

COLON_DELIM

COLON_DELIM: number

COMMA_DELIM

COMMA_DELIM: number

EOF_DELIM

EOF_DELIM: number

LBRACE_DELIM

LBRACE_DELIM: number

NEWLINE_DELIM

NEWLINE_DELIM: number

RBRACE_DELIM

RBRACE_DELIM: number

RPAREN_DELIM

RPAREN_DELIM: number

SEMICOLON_DELIM

SEMICOLON_DELIM: number

characterContainsDelimiter

  • characterContainsDelimiter(code: number, delimiters: number): boolean
  • Parameters

    • code: number
    • delimiters: number

    Returns boolean

getDelimFromCharacter

  • getDelimFromCharacter(code: number): number
  • Parameters

    • code: number

    Returns number

getDelimFromToken

  • getDelimFromToken(token: CssToken): number
  • Parameters

    • token: CssToken

    Returns number

mergeTokens

  • mergeTokens(tokens: CssToken[], separator?: string): CssToken
  • Parameters

    • tokens: CssToken[]
    • Default value separator: string = ""

    Returns CssToken

"node_modules/angular2/ts/src/compiler/directive_metadata"

"node_modules/angular2/ts/src/compiler/directive_metadata":

CompileDiDependencyMetadata

CompileDiDependencyMetadata:

constructor

isAttribute

isAttribute: boolean

isHost

isHost: boolean

isOptional

isOptional: boolean

isSelf

isSelf: boolean

isSkipSelf

isSkipSelf: boolean

query

token

viewQuery

toJson

  • toJson(): object
  • Returns object

    • [key: string]: any

fromJson

  • Parameters

    • data: object
      • [key: string]: any

    Returns CompileDiDependencyMetadata

CompileDirectiveMetadata

CompileDirectiveMetadata:

Metadata regarding compilation of a directive.

constructor

changeDetection

changeDetection: ChangeDetectionStrategy

dynamicLoadable

dynamicLoadable: boolean

exportAs

exportAs: string

hostAttributes

hostAttributes: object

Type declaration

  • [key: string]: string

hostListeners

hostListeners: object

Type declaration

  • [key: string]: string

hostProperties

hostProperties: object

Type declaration

  • [key: string]: string

inputs

inputs: object

Type declaration

  • [key: string]: string

isComponent

isComponent: boolean

lifecycleHooks

lifecycleHooks: LifecycleHooks[]

outputs

outputs: object

Type declaration

  • [key: string]: string

providers

providers: Array<CompileProviderMetadata | CompileTypeMetadata | any[]>

queries

selector

selector: string

template

type

viewProviders

viewProviders: Array<CompileProviderMetadata | CompileTypeMetadata | any[]>

viewQueries

viewQueries: CompileQueryMetadata[]

identifier

identifier:

toJson

  • toJson(): object
  • Returns object

    • [key: string]: any

create

fromJson

  • Parameters

    • data: object
      • [key: string]: any

    Returns CompileDirectiveMetadata

CompileFactoryMetadata

CompileFactoryMetadata:

constructor

  • Parameters

    • __namedParameters: object

    Returns CompileFactoryMetadata

constConstructor

constConstructor: boolean

diDeps

moduleUrl

moduleUrl: string

name

name: string

prefix

prefix: string

runtime

runtime: Function

identifier

identifier:

toJson

  • toJson(): any
  • Returns any

CompileIdentifierMetadata

CompileIdentifierMetadata:

constructor

  • Parameters

    • Default value __namedParameters: object = {}
      • constConstructor: boolean
      • moduleUrl: string
      • name: string
      • prefix: string
      • runtime: any

    Returns CompileIdentifierMetadata

constConstructor

constConstructor: boolean

moduleUrl

moduleUrl: string

name

name: string

prefix

prefix: string

runtime

runtime: any

identifier

identifier:

toJson

  • toJson(): object
  • Returns object

    • [key: string]: any

fromJson

  • Parameters

    • data: object
      • [key: string]: any

    Returns CompileIdentifierMetadata

CompileMetadataWithIdentifier

CompileMetadataWithIdentifier:

identifier

identifier:

toJson

  • toJson(): object
  • Returns object

    • [key: string]: any

fromJson

  • Parameters

    • data: object
      • [key: string]: any

    Returns CompileMetadataWithIdentifier

CompileMetadataWithType

CompileMetadataWithType:

identifier

identifier:

type

type:

toJson

  • toJson(): object

fromJson

CompilePipeMetadata

CompilePipeMetadata:

constructor

  • Parameters

    • Default value __namedParameters: object = {}

    Returns CompilePipeMetadata

name

name: string

pure

pure: boolean

type

identifier

identifier:

toJson

  • toJson(): object
  • Returns object

    • [key: string]: any

fromJson

  • Parameters

    • data: object
      • [key: string]: any

    Returns CompilePipeMetadata

CompileProviderMetadata

CompileProviderMetadata:

constructor

deps

multi

multi: boolean

token

useClass

useExisting

useExisting: CompileIdentifierMetadata | string

useFactory

useValue

useValue: any

toJson

  • toJson(): object
  • Returns object

    • [key: string]: any

fromJson

  • Parameters

    • data: object
      • [key: string]: any

    Returns CompileProviderMetadata

CompileQueryMetadata

CompileQueryMetadata:

constructor

  • Parameters

    • Default value __namedParameters: object = {}

    Returns CompileQueryMetadata

descendants

descendants: boolean

first

first: boolean

propertyName

propertyName: string

selectors

selectors: Array<CompileIdentifierMetadata | string>

toJson

  • toJson(): object
  • Returns object

    • [key: string]: any

fromJson

  • Parameters

    • data: object
      • [key: string]: any

    Returns CompileQueryMetadata

CompileTemplateMetadata

CompileTemplateMetadata:

Metadata regarding compilation of a template.

constructor

  • Parameters

    • Default value __namedParameters: object = {}
      • encapsulation: ViewEncapsulation
      • ngContentSelectors: Array<string>
      • styleUrls: Array<string>
      • styles: Array<string>
      • template: string
      • templateUrl: string

    Returns CompileTemplateMetadata

encapsulation

encapsulation: ViewEncapsulation

ngContentSelectors

ngContentSelectors: string[]

styleUrls

styleUrls: string[]

styles

styles: string[]

template

template: string

templateUrl

templateUrl: string

toJson

  • toJson(): object
  • Returns object

    • [key: string]: any

fromJson

  • Parameters

    • data: object
      • [key: string]: any

    Returns CompileTemplateMetadata

CompileTypeMetadata

CompileTypeMetadata:

Metadata regarding compilation of a type.

constructor

  • Parameters

    • Default value __namedParameters: object = {}
      • constConstructor: boolean
      • diDeps: Array<CompileDiDependencyMetadata>
      • isHost: boolean
      • moduleUrl: string
      • name: string
      • prefix: string
      • runtime: Type

    Returns CompileTypeMetadata

constConstructor

constConstructor: boolean

diDeps

isHost

isHost: boolean

moduleUrl

moduleUrl: string

name

name: string

prefix

prefix: string

runtime

runtime: Type

identifier

identifier:

type

type:

toJson

  • toJson(): object
  • Returns object

    • [key: string]: any

fromJson

  • Parameters

    • data: object
      • [key: string]: any

    Returns CompileTypeMetadata

HOST_REG_EXP

HOST_REG_EXP: RegExp

arrayFromJson

  • arrayFromJson(obj: any[], fn: function): any
  • Parameters

    • obj: any[]
    • fn: function
        • (a: object): any
        • Parameters

          • a: object
            • [key: string]: any

          Returns any

    Returns any

arrayToJson

  • arrayToJson(obj: any[]): string | object
  • Parameters

    • obj: any[]

    Returns string | object

createHostComponentMeta

objFromJson

  • objFromJson(obj: any, fn: function): any
  • Parameters

    • obj: any
    • fn: function
        • (a: object): any
        • Parameters

          • a: object
            • [key: string]: any

          Returns any

    Returns any

objToJson

  • objToJson(obj: any): string | object
  • Parameters

    • obj: any

    Returns string | object

_COMPILE_METADATA_FROM_JSON

_COMPILE_METADATA_FROM_JSON: object

Directive

Directive: fromJson

Identifier

Identifier: fromJson

Pipe

Pipe: fromJson

Type

Type: fromJson

"node_modules/angular2/ts/src/compiler/html_ast"

"node_modules/angular2/ts/src/compiler/html_ast":

HtmlAttrAst

HtmlAttrAst:

constructor

  • Parameters

    Returns HtmlAttrAst

name

name: string

sourceSpan

sourceSpan: ParseSourceSpan

value

value: string

visit

  • Parameters

    Returns any

HtmlCommentAst

HtmlCommentAst:

constructor

sourceSpan

sourceSpan: ParseSourceSpan

value

value: string

visit

  • Parameters

    Returns any

HtmlElementAst

HtmlElementAst:

constructor

attrs

attrs: HtmlAttrAst[]

children

children: HtmlAst[]

endSourceSpan

endSourceSpan: ParseSourceSpan

name

name: string

sourceSpan

sourceSpan: ParseSourceSpan

startSourceSpan

startSourceSpan: ParseSourceSpan

visit

  • Parameters

    Returns any

HtmlTextAst

HtmlTextAst:

constructor

  • Parameters

    Returns HtmlTextAst

sourceSpan

sourceSpan: ParseSourceSpan

value

value: string

visit

  • Parameters

    Returns any

HtmlAst

HtmlAst:

sourceSpan

sourceSpan: ParseSourceSpan

visit

  • Parameters

    Returns any

HtmlAstVisitor

HtmlAstVisitor:

visitAttr

  • Parameters

    Returns any

visitComment

  • Parameters

    Returns any

visitElement

  • Parameters

    Returns any

visitText

  • Parameters

    Returns any

htmlVisitAll

  • Parameters

    Returns any[]

"node_modules/angular2/ts/src/compiler/html_lexer"

"node_modules/angular2/ts/src/compiler/html_lexer":

HtmlTokenType

HtmlTokenType:

ATTR_NAME

ATTR_NAME:

ATTR_VALUE

ATTR_VALUE:

CDATA_END

CDATA_END:

CDATA_START

CDATA_START:

COMMENT_END

COMMENT_END:

COMMENT_START

COMMENT_START:

DOC_TYPE

DOC_TYPE:

EOF

EOF:

ESCAPABLE_RAW_TEXT

ESCAPABLE_RAW_TEXT:

RAW_TEXT

RAW_TEXT:

TAG_CLOSE

TAG_CLOSE:

TAG_OPEN_END

TAG_OPEN_END:

TAG_OPEN_END_VOID

TAG_OPEN_END_VOID:

TAG_OPEN_START

TAG_OPEN_START:

TEXT

TEXT:

ControlFlowError

ControlFlowError:

constructor

error

HtmlToken

HtmlToken:

constructor

parts

parts: string[]

sourceSpan

sourceSpan: ParseSourceSpan

type

HtmlTokenError

HtmlTokenError:

constructor

msg

msg: string

span

tokenType

tokenType: HtmlTokenType

toString

  • toString(): string
  • Returns string

HtmlTokenizeResult

HtmlTokenizeResult:

constructor

errors

errors: HtmlTokenError[]

tokens

tokens: HtmlToken[]

_HtmlTokenizer

_HtmlTokenizer:

constructor

column

column: number

currentTokenStart

currentTokenStart: ParseLocation

currentTokenType

currentTokenType: HtmlTokenType

errors

errors: HtmlTokenError[]

file

index

index: number

input

input: string

length

length: number

line

line: number

peek

peek: number

tokens

tokens: HtmlToken[]

_advance

  • _advance(): void
  • Returns void

_attemptCharCode

  • _attemptCharCode(charCode: number): boolean
  • Parameters

    • charCode: number

    Returns boolean

_attemptCharCodeCaseInsensitive

  • _attemptCharCodeCaseInsensitive(charCode: number): boolean
  • Parameters

    • charCode: number

    Returns boolean

_attemptCharCodeUntilFn

  • _attemptCharCodeUntilFn(predicate: Function): void
  • Parameters

    • predicate: Function

    Returns void

_attemptStr

  • _attemptStr(chars: string): boolean
  • Parameters

    • chars: string

    Returns boolean

_attemptStrCaseInsensitive

  • _attemptStrCaseInsensitive(chars: string): boolean
  • Parameters

    • chars: string

    Returns boolean

_attemptUntilChar

  • _attemptUntilChar(char: number): void
  • Parameters

    • char: number

    Returns void

_beginToken

  • Parameters

    Returns void

_consumeAttributeName

  • _consumeAttributeName(): void
  • Returns void

_consumeAttributeValue

  • _consumeAttributeValue(): void
  • Returns void

_consumeCdata

  • Parameters

    Returns void

_consumeComment

  • Parameters

    Returns void

_consumeDocType

  • Parameters

    Returns void

_consumePrefixAndName

  • _consumePrefixAndName(): string[]
  • Returns string[]

_consumeRawText

  • _consumeRawText(decodeEntities: boolean, firstCharOfEnd: number, attemptEndRest: Function): HtmlToken
  • Parameters

    • decodeEntities: boolean
    • firstCharOfEnd: number
    • attemptEndRest: Function

    Returns HtmlToken

_consumeRawTextWithTagClose

  • _consumeRawTextWithTagClose(lowercaseTagName: string, decodeEntities: boolean): void
  • Parameters

    • lowercaseTagName: string
    • decodeEntities: boolean

    Returns void

_consumeTagClose

  • Parameters

    Returns void

_consumeTagOpen

  • Parameters

    Returns void

_consumeTagOpenEnd

  • _consumeTagOpenEnd(): void
  • Returns void

_consumeTagOpenStart

  • Parameters

    Returns void

_consumeText

  • _consumeText(): void
  • Returns void

_createError

_decodeEntity

  • _decodeEntity(): string
  • Returns string

_endToken

  • Parameters

    Returns HtmlToken

_getLocation

  • Returns ParseLocation

_getSpan

_processCarriageReturns

  • _processCarriageReturns(content: string): string
  • Parameters

    • content: string

    Returns string

_readChar

  • _readChar(decodeEntities: boolean): string
  • Parameters

    • decodeEntities: boolean

    Returns string

_requireCharCode

  • _requireCharCode(charCode: number): void
  • Parameters

    • charCode: number

    Returns void

_requireCharCodeUntilFn

  • _requireCharCodeUntilFn(predicate: Function, len: number): void
  • Parameters

    • predicate: Function
    • len: number

    Returns void

_requireStr

  • _requireStr(chars: string): void
  • Parameters

    • chars: string

    Returns void

_restorePosition

  • _restorePosition(position: number[]): void
  • Parameters

    • position: number[]

    Returns void

_savePosition

  • _savePosition(): number[]
  • Returns number[]

tokenize

  • Returns HtmlTokenizeResult

$$

$$: number

$0

$0: number

$9

$9: number

$A

$A: number

$AMPERSAND

$AMPERSAND: number

$BANG

$BANG: number

$COLON

$COLON: number

$CR

$CR: number

$DQ

$DQ: number

$EOF

$EOF: number

$EQ

$EQ: number

$F

$F: number

$FF

$FF: number

$GT

$GT: number

$HASH

$HASH: number

$LBRACKET

$LBRACKET: number

$LF

$LF: number

$LT

$LT: number

$MINUS

$MINUS: number

$NBSP

$NBSP: number

$QUESTION

$QUESTION: number

$RBRACKET

$RBRACKET: number

$SEMICOLON

$SEMICOLON: number

$SLASH

$SLASH: number

$SPACE

$SPACE: number

$SQ

$SQ: number

$TAB

$TAB: number

$X

$X: number

$Z

$Z: number

$a

$a: number

$f

$f: number

$x

$x: number

$z

$z: number

CR_OR_CRLF_REGEXP

CR_OR_CRLF_REGEXP: RegExp

compareCharCodeCaseInsensitive

  • compareCharCodeCaseInsensitive(code1: number, code2: number): boolean
  • Parameters

    • code1: number
    • code2: number

    Returns boolean

isAsciiHexDigit

  • isAsciiHexDigit(code: number): boolean
  • Parameters

    • code: number

    Returns boolean

isAsciiLetter

  • isAsciiLetter(code: number): boolean
  • Parameters

    • code: number

    Returns boolean

isDigitEntityEnd

  • isDigitEntityEnd(code: number): boolean
  • Parameters

    • code: number

    Returns boolean

isNameEnd

  • isNameEnd(code: number): boolean
  • Parameters

    • code: number

    Returns boolean

isNamedEntityEnd

  • isNamedEntityEnd(code: number): boolean
  • Parameters

    • code: number

    Returns boolean

isNotWhitespace

  • isNotWhitespace(code: number): boolean
  • Parameters

    • code: number

    Returns boolean

isPrefixEnd

  • isPrefixEnd(code: number): boolean
  • Parameters

    • code: number

    Returns boolean

isTextEnd

  • isTextEnd(code: number): boolean
  • Parameters

    • code: number

    Returns boolean

isWhitespace

  • isWhitespace(code: number): boolean
  • Parameters

    • code: number

    Returns boolean

mergeTextTokens

  • Parameters

    Returns HtmlToken[]

toUpperCaseCharCode

  • toUpperCaseCharCode(code: number): number
  • Parameters

    • code: number

    Returns number

tokenizeHtml

  • Parameters

    • sourceContent: string
    • sourceUrl: string

    Returns HtmlTokenizeResult

unexpectedCharacterErrorMsg

  • unexpectedCharacterErrorMsg(charCode: number): string
  • Parameters

    • charCode: number

    Returns string

unknownEntityErrorMsg

  • unknownEntityErrorMsg(entitySrc: string): string
  • Parameters

    • entitySrc: string

    Returns string

"node_modules/angular2/ts/src/compiler/html_parser"

"node_modules/angular2/ts/src/compiler/html_parser":

HtmlParseTreeResult

HtmlParseTreeResult:

constructor

errors

errors: ParseError[]

rootNodes

rootNodes: HtmlAst[]

HtmlParser

HtmlParser:

parse

  • Parameters

    • sourceContent: string
    • sourceUrl: string

    Returns HtmlParseTreeResult

HtmlTreeError

HtmlTreeError:

constructor

elementName

elementName: string

msg

msg: string

span

toString

  • toString(): string
  • Returns string

create

  • Parameters

    Returns HtmlTreeError

TreeBuilder

TreeBuilder:

constructor

  • Parameters

    Returns TreeBuilder

elementStack

elementStack: HtmlElementAst[]

errors

errors: HtmlTreeError[]

index

index: number

peek

peek: HtmlToken

rootNodes

rootNodes: HtmlAst[]

tokens

tokens: HtmlToken[]

_addToParent

  • _addToParent(node: HtmlAst): void
  • Parameters

    Returns void

_advance

  • Returns HtmlToken

_advanceIf

  • Parameters

    Returns HtmlToken

_closeVoidElement

  • _closeVoidElement(): void
  • Returns void

_consumeAttr

  • Parameters

    Returns HtmlAttrAst

_consumeCdata

  • Parameters

    Returns void

_consumeComment

  • Parameters

    Returns void

_consumeEndTag

  • _consumeEndTag(endTagToken: HtmlToken): void
  • Parameters

    Returns void

_consumeStartTag

  • _consumeStartTag(startTagToken: HtmlToken): void
  • Parameters

    Returns void

_consumeText

  • Parameters

    Returns void

_getParentElement

  • Returns HtmlElementAst

_popElement

  • _popElement(fullName: string): boolean
  • Parameters

    • fullName: string

    Returns boolean

_pushElement

  • Parameters

    Returns void

build

  • Returns HtmlParseTreeResult

getElementFullName

  • getElementFullName(prefix: string, localName: string, parentElement: HtmlElementAst): string
  • Parameters

    Returns string

"node_modules/angular2/ts/src/compiler/html_tags"

"node_modules/angular2/ts/src/compiler/html_tags":

HtmlTagContentType

HtmlTagContentType:

ESCAPABLE_RAW_TEXT

ESCAPABLE_RAW_TEXT:

PARSABLE_DATA

PARSABLE_DATA:

RAW_TEXT

RAW_TEXT:

HtmlTagDefinition

HtmlTagDefinition:

constructor

  • Parameters

    • Default value __namedParameters: object = {}
      • closedByChildren: Array<string>
      • closedByParent: boolean
      • contentType: HtmlTagContentType
      • ignoreFirstLf: boolean
      • implicitNamespacePrefix: string
      • isVoid: boolean
      • requiredParents: Array<string>

    Returns HtmlTagDefinition

closedByChildren

closedByChildren: object

Type declaration

  • [key: string]: boolean

closedByParent

closedByParent: boolean

contentType

contentType: HtmlTagContentType

ignoreFirstLf

ignoreFirstLf: boolean

implicitNamespacePrefix

implicitNamespacePrefix: string

isVoid

isVoid: boolean

parentToAdd

parentToAdd: string

requiredParents

requiredParents: object

Type declaration

  • [key: string]: boolean

isClosedByChild

  • isClosedByChild(name: string): boolean
  • Parameters

    • name: string

    Returns boolean

requireExtraParent

  • requireExtraParent(currentParent: string): boolean
  • Parameters

    • currentParent: string

    Returns boolean

DEFAULT_TAG_DEFINITION

DEFAULT_TAG_DEFINITION: HtmlTagDefinition

NAMED_ENTITIES

NAMED_ENTITIES: object

Type declaration

  • AElig: string
  • Aacute: string
  • Acirc: string
  • Agrave: string
  • Alpha: string
  • Aring: string
  • Atilde: string
  • Auml: string
  • Beta: string
  • Ccedil: string
  • Chi: string
  • Dagger: string
  • Delta: string
  • ETH: string
  • Eacute: string
  • Ecirc: string
  • Egrave: string
  • Epsilon: string
  • Eta: string
  • Euml: string
  • Gamma: string
  • Iacute: string
  • Icirc: string
  • Igrave: string
  • Iota: string
  • Iuml: string
  • Kappa: string
  • Lambda: string
  • Mu: string
  • Ntilde: string
  • Nu: string
  • OElig: string
  • Oacute: string
  • Ocirc: string
  • Ograve: string
  • Omega: string
  • Omicron: string
  • Oslash: string
  • Otilde: string
  • Ouml: string
  • Phi: string
  • Pi: string
  • Prime: string
  • Psi: string
  • Rho: string
  • Scaron: string
  • Sigma: string
  • THORN: string
  • Tau: string
  • Theta: string
  • Uacute: string
  • Ucirc: string
  • Ugrave: string
  • Upsilon: string
  • Uuml: string
  • Xi: string
  • Yacute: string
  • Yuml: string
  • Zeta: string
  • aacute: string
  • acirc: string
  • acute: string
  • aelig: string
  • agrave: string
  • alefsym: string
  • alpha: string
  • amp: string
  • and: string
  • ang: string
  • apos: string
  • aring: string
  • asymp: string
  • atilde: string
  • auml: string
  • bdquo: string
  • beta: string
  • brvbar: string
  • bull: string
  • cap: string
  • ccedil: string
  • cedil: string
  • cent: string
  • chi: string
  • circ: string
  • clubs: string
  • cong: string
  • copy: string
  • crarr: string
  • cup: string
  • curren: string
  • dArr: string
  • dagger: string
  • darr: string
  • deg: string
  • delta: string
  • diams: string
  • divide: string
  • eacute: string
  • ecirc: string
  • egrave: string
  • empty: string
  • emsp: string
  • ensp: string
  • epsilon: string
  • equiv: string
  • eta: string
  • eth: string
  • euml: string
  • euro: string
  • exist: string
  • fnof: string
  • forall: string
  • frac12: string
  • frac14: string
  • frac34: string
  • frasl: string
  • gamma: string
  • ge: string
  • gt: string
  • hArr: string
  • harr: string
  • hearts: string
  • hellip: string
  • iacute: string
  • icirc: string
  • iexcl: string
  • igrave: string
  • image: string
  • infin: string
  • int: string
  • iota: string
  • iquest: string
  • isin: string
  • iuml: string
  • kappa: string
  • lArr: string
  • lambda: string
  • lang: string
  • laquo: string
  • larr: string
  • lceil: string
  • ldquo: string
  • le: string
  • lfloor: string
  • lowast: string
  • loz: string
  • lrm: string
  • lsaquo: string
  • lsquo: string
  • lt: string
  • macr: string
  • mdash: string
  • micro: string
  • middot: string
  • minus: string
  • mu: string
  • nabla: string
  • nbsp: string
  • ndash: string
  • ne: string
  • ni: string
  • not: string
  • notin: string
  • nsub: string
  • ntilde: string
  • nu: string
  • oacute: string
  • ocirc: string
  • oelig: string
  • ograve: string
  • oline: string
  • omega: string
  • omicron: string
  • oplus: string
  • or: string
  • ordf: string
  • ordm: string
  • oslash: string
  • otilde: string
  • otimes: string
  • ouml: string
  • para: string
  • permil: string
  • perp: string
  • phi: string
  • pi: string
  • piv: string
  • plusmn: string
  • pound: string
  • prime: string
  • prod: string
  • prop: string
  • psi: string
  • quot: string
  • rArr: string
  • radic: string
  • rang: string
  • raquo: string
  • rarr: string
  • rceil: string
  • rdquo: string
  • real: string
  • reg: string
  • rfloor: string
  • rho: string
  • rlm: string
  • rsaquo: string
  • rsquo: string
  • sbquo: string
  • scaron: string
  • sdot: string
  • sect: string
  • shy: string
  • sigma: string
  • sigmaf: string
  • sim: string
  • spades: string
  • sub: string
  • sube: string
  • sum: string
  • sup: string
  • sup1: string
  • sup2: string
  • sup3: string
  • supe: string
  • szlig: string
  • tau: string
  • there4: string
  • theta: string
  • thetasym: string
  • thinsp: string
  • thorn: string
  • tilde: string
  • times: string
  • trade: string
  • uArr: string
  • uacute: string
  • uarr: string
  • ucirc: string
  • ugrave: string
  • uml: string
  • upsih: string
  • upsilon: string
  • uuml: string
  • weierp: string
  • xi: string
  • yacute: string
  • yen: string
  • yuml: string
  • zeta: string
  • zwj: string
  • zwnj: string

NS_PREFIX_RE

NS_PREFIX_RE: RegExp

getHtmlTagDefinition

  • Parameters

    • tagName: string

    Returns HtmlTagDefinition

getNsPrefix

  • getNsPrefix(elementName: string): string
  • Parameters

    • elementName: string

    Returns string

mergeNsAndName

  • mergeNsAndName(prefix: string, localName: string): string
  • Parameters

    • prefix: string
    • localName: string

    Returns string

splitNsName

  • splitNsName(elementName: string): string[]
  • Parameters

    • elementName: string

    Returns string[]

TAG_DEFINITIONS

TAG_DEFINITIONS: object

area

base

br

col

dd

dt

embed

hr

img

input

li

link

listing

math

meta

optgroup

option

p

param

pre

rb

rp

rt

rtc

script

source

style

svg

tbody

td

textarea

tfoot

th

thead

title

tr

track

wbr

"node_modules/angular2/ts/src/compiler/legacy_template"

"node_modules/angular2/ts/src/compiler/legacy_template":

LegacyHtmlAstTransformer

LegacyHtmlAstTransformer:

Convert templates to the case sensitive syntax

internal

constructor

  • Parameters

    • Optional dashCaseSelectors: string[]

    Returns LegacyHtmlAstTransformer

dashCaseSelectors

dashCaseSelectors: string[]

rewrittenAst

rewrittenAst: HtmlAst[]

visitingTemplateEl

visitingTemplateEl: boolean

_rewriteInterpolation

  • Parameters

    Returns HtmlAttrAst

_rewriteLongSyntax

  • Parameters

    Returns HtmlAttrAst

_rewriteShortSyntax

  • Parameters

    Returns HtmlAttrAst

_rewriteSpecialCases

  • Parameters

    Returns HtmlAttrAst

_rewriteStar

  • Parameters

    Returns HtmlAttrAst

_rewriteTemplateAttribute

  • Parameters

    Returns HtmlAttrAst

visitAttr

visitComment

visitElement

visitText

LegacyHtmlParser

LegacyHtmlParser:

parse

  • Parameters

    • sourceContent: string
    • sourceUrl: string

    Returns HtmlParseTreeResult

INTERPOLATION_REGEXP

INTERPOLATION_REGEXP: RegExp

LONG_SYNTAX_REGEXP

LONG_SYNTAX_REGEXP: RegExp

SHORT_SYNTAX_REGEXP

SHORT_SYNTAX_REGEXP: RegExp

SPECIAL_CASES

SPECIAL_CASES: Array<string>

SPECIAL_PREFIXES_REGEXP

SPECIAL_PREFIXES_REGEXP: RegExp

TEMPLATE_SELECTOR_REGEXP

TEMPLATE_SELECTOR_REGEXP: RegExp

VARIABLE_TPL_BINDING_REGEXP

VARIABLE_TPL_BINDING_REGEXP: RegExp

"node_modules/angular2/ts/src/compiler/parse_util"

"node_modules/angular2/ts/src/compiler/parse_util":

ParseError

ParseError:

constructor

  • Parameters

    Returns ParseError

msg

msg: string

span

toString

  • toString(): string
  • Returns string

ParseLocation

ParseLocation:

constructor

  • Parameters

    Returns ParseLocation

col

col: number

file

line

line: number

offset

offset: number

toString

  • toString(): string
  • Returns string

ParseSourceFile

ParseSourceFile:

constructor

  • Parameters

    • content: string
    • url: string

    Returns ParseSourceFile

content

content: string

url

url: string

ParseSourceSpan

ParseSourceSpan:

constructor

end

start

toString

  • toString(): string
  • Returns string

"node_modules/angular2/ts/src/compiler/proto_view_compiler"

"node_modules/angular2/ts/src/compiler/proto_view_compiler":

CodeGenProtoViewFactory

CodeGenProtoViewFactory:

constructor

_nextVarId

_nextVarId: number

component

pipes

resolvedMetadataCacheExpr

resolvedMetadataCacheExpr: Expression

_nextProtoViewVar

  • _nextProtoViewVar(embeddedTemplateIndex: number): string
  • Parameters

    • embeddedTemplateIndex: number

    Returns string

createAppProtoElement

createAppProtoView

  • createAppProtoView(embeddedTemplateIndex: number, viewType: ViewType, templateVariableBindings: string[], targetStatements: Statement[]): Expression
  • Parameters

    • embeddedTemplateIndex: number
    • viewType: ViewType
    • templateVariableBindings: string[]
    • targetStatements: Statement[]

    Returns Expression

createCompileProtoView

CompileProtoElement

CompileProtoElement:

constructor

  • Parameters

    • boundElementIndex: any
    • attrNameAndValues: string[]
    • variableNameAndValues: string[]
    • renderEvents: BoundEventAst[]
    • directives: CompileDirectiveMetadata[]
    • embeddedTemplateIndex: number
    • appProtoEl: APP_PROTO_EL

    Returns CompileProtoElement

appProtoEl

appProtoEl: APP_PROTO_EL

attrNameAndValues

attrNameAndValues: string[]

boundElementIndex

boundElementIndex: any

directives

embeddedTemplateIndex

embeddedTemplateIndex: number

renderEvents

renderEvents: BoundEventAst[]

variableNameAndValues

variableNameAndValues: string[]

CompileProtoView

CompileProtoView:

constructor

  • Parameters

    • embeddedTemplateIndex: number
    • protoElements: CompileProtoElement<APP_PROTO_EL>[]
    • protoView: APP_PROTO_VIEW

    Returns CompileProtoView

embeddedTemplateIndex

embeddedTemplateIndex: number

protoElements

protoElements: CompileProtoElement<APP_PROTO_EL>[]

protoView

protoView: APP_PROTO_VIEW

CompileProtoViews

CompileProtoViews:

constructor

  • Parameters

    • declarations: STATEMENT[]
    • protoViews: CompileProtoView<APP_PROTO_VIEW, APP_PROTO_EL>[]

    Returns CompileProtoViews

declarations

declarations: STATEMENT[]

protoViews

protoViews: CompileProtoView<APP_PROTO_VIEW, APP_PROTO_EL>[]

DirectiveContext

DirectiveContext:

constructor

  • Parameters

    Returns DirectiveContext

boundElementIndex

boundElementIndex: number

hostEventTargetAndNames

hostEventTargetAndNames: Map<string, BoundEventAst>

index

index: number

targetDirectives

targetDirectives: CompileDirectiveMetadata[]

targetVariableNameAndValues

targetVariableNameAndValues: any[]

ProtoViewBuilderVisitor

ProtoViewBuilderVisitor:

constructor

  • Parameters

    Returns ProtoViewBuilderVisitor

allProtoViews

allProtoViews: CompileProtoView<APP_PROTO_VIEW, APP_PROTO_EL>[]

allStatements

allStatements: STATEMENT[]

boundElementCount

boundElementCount: number

factory

factory: ProtoViewFactory<APP_PROTO_VIEW, APP_PROTO_EL, STATEMENT>

protoElements

protoElements: CompileProtoElement<APP_PROTO_EL>[]

_addProtoElement

  • _addProtoElement(isBound: boolean, boundElementIndex: any, attrNameAndValues: string[], variableNameAndValues: string[], renderEvents: BoundEventAst[], directives: CompileDirectiveMetadata[], embeddedTemplateIndex: number): void
  • Parameters

    • isBound: boolean
    • boundElementIndex: any
    • attrNameAndValues: string[]
    • variableNameAndValues: string[]
    • renderEvents: BoundEventAst[]
    • directives: CompileDirectiveMetadata[]
    • embeddedTemplateIndex: number

    Returns void

_readAttrNameAndValues

visitAttr

  • visitAttr(ast: AttrAst, attrNameAndValues: object): any
  • Parameters

    • ast: AttrAst
    • attrNameAndValues: object
      • [key: string]: string

    Returns any

visitBoundText

visitDirective

  • Parameters

    Returns any

visitDirectiveProperty

visitElement

  • visitElement(ast: ElementAst, context: any): any

visitElementProperty

visitEmbeddedTemplate

visitEvent

  • Parameters

    Returns any

visitNgContent

visitText

  • visitText(ast: TextAst, context: any): any
  • Parameters

    Returns any

visitVariable

ProtoViewCompiler

ProtoViewCompiler:

constructor

  • Returns ProtoViewCompiler

compileProtoViewCodeGen

compileProtoViewRuntime

ProtoViewFactory

ProtoViewFactory:

constructor

component

createAppProtoElement

  • createAppProtoElement(boundElementIndex: number, attrNameAndValues: string[], variableNameAndValues: string[], directives: CompileDirectiveMetadata[], targetStatements: STATEMENT[]): APP_PROTO_EL
  • Parameters

    • boundElementIndex: number
    • attrNameAndValues: string[]
    • variableNameAndValues: string[]
    • directives: CompileDirectiveMetadata[]
    • targetStatements: STATEMENT[]

    Returns APP_PROTO_EL

createAppProtoView

  • createAppProtoView(embeddedTemplateIndex: number, viewType: ViewType, templateVariableBindings: string[], targetStatements: STATEMENT[]): APP_PROTO_VIEW
  • Parameters

    • embeddedTemplateIndex: number
    • viewType: ViewType
    • templateVariableBindings: string[]
    • targetStatements: STATEMENT[]

    Returns APP_PROTO_VIEW

createCompileProtoView

  • createCompileProtoView(template: TemplateAst[], templateVariableBindings: string[], targetStatements: STATEMENT[], targetProtoViews: CompileProtoView<APP_PROTO_VIEW, APP_PROTO_EL>[]): CompileProtoView<APP_PROTO_VIEW, APP_PROTO_EL>
  • Parameters

    • template: TemplateAst[]
    • templateVariableBindings: string[]
    • targetStatements: STATEMENT[]
    • targetProtoViews: CompileProtoView<APP_PROTO_VIEW, APP_PROTO_EL>[]

    Returns CompileProtoView<APP_PROTO_VIEW, APP_PROTO_EL>

RuntimeProtoViewFactory

RuntimeProtoViewFactory:

constructor

component

metadataCache

metadataCache: ResolvedMetadataCache

pipes

createAppProtoElement

  • createAppProtoElement(boundElementIndex: number, attrNameAndValues: string[], variableNameAndValues: string[], directives: CompileDirectiveMetadata[], targetStatements: any[]): AppProtoElement
  • Parameters

    • boundElementIndex: number
    • attrNameAndValues: string[]
    • variableNameAndValues: string[]
    • directives: CompileDirectiveMetadata[]
    • targetStatements: any[]

    Returns AppProtoElement

createAppProtoView

  • createAppProtoView(embeddedTemplateIndex: number, viewType: ViewType, templateVariableBindings: string[], targetStatements: any[]): AppProtoView
  • Parameters

    • embeddedTemplateIndex: number
    • viewType: ViewType
    • templateVariableBindings: string[]
    • targetStatements: any[]

    Returns AppProtoView

createCompileProtoView

  • createCompileProtoView(template: TemplateAst[], templateVariableBindings: string[], targetStatements: any[], targetProtoViews: CompileProtoView<AppProtoView, AppProtoElement>[]): CompileProtoView<AppProtoView, AppProtoElement>

APP_EL_MODULE_REF

APP_EL_MODULE_REF: string

APP_VIEW_MODULE_REF

APP_VIEW_MODULE_REF: string

CLASS_ATTR

CLASS_ATTR: string

IMPLICIT_TEMPLATE_VAR

IMPLICIT_TEMPLATE_VAR: string

METADATA_MODULE_REF

METADATA_MODULE_REF: string

PROTO_VIEW_JIT_IMPORTS

PROTO_VIEW_JIT_IMPORTS: object

Type declaration

  • AppProtoElement: AppProtoElement
  • AppProtoView: AppProtoView
  • ViewType: ViewType

STYLE_ATTR

STYLE_ATTR: string

VIEW_TYPE_MODULE_REF

VIEW_TYPE_MODULE_REF: string

codeGenDirectivesArray

  • Parameters

    Returns string

codeGenTypesArray

  • Parameters

    Returns string

codeGenViewType

  • codeGenViewType(value: ViewType): string
  • Parameters

    • value: ViewType

    Returns string

getViewType

  • Parameters

    Returns ViewType

keyValueArrayToStringMap

  • keyValueArrayToStringMap(keyValueArray: any[]): object
  • Parameters

    • keyValueArray: any[]

    Returns object

    • [key: string]: any

mapToKeyValueArray

  • mapToKeyValueArray(data: object): string[]
  • Parameters

    • data: object
      • [key: string]: string

    Returns string[]

mergeAttributeValue

  • mergeAttributeValue(attrName: string, attrValue1: string, attrValue2: string): string
  • Parameters

    • attrName: string
    • attrValue1: string
    • attrValue2: string

    Returns string

typeRef

  • Parameters

    Returns string

visitAndReturnContext

  • Parameters

    Returns any

"node_modules/angular2/ts/src/compiler/runtime_compiler"

"node_modules/angular2/ts/src/compiler/runtime_compiler":

RuntimeCompiler

RuntimeCompiler:

clearCache

  • clearCache(): any
  • Returns any

compileInHost

  • compileInHost(componentType: Type): Promise<HostViewFactoryRef>
  • Parameters

    • componentType: Type

    Returns Promise<HostViewFactoryRef>

RuntimeCompiler_

RuntimeCompiler_:

constructor

_templateCompiler

_templateCompiler: TemplateCompiler

clearCache

  • clearCache(): void
  • Returns void

compileInHost

  • compileInHost(componentType: Type): Promise<HostViewFactoryRef_>
  • Parameters

    • componentType: Type

    Returns Promise<HostViewFactoryRef_>

"node_modules/angular2/ts/src/compiler/runtime_metadata"

"node_modules/angular2/ts/src/compiler/runtime_metadata":

RuntimeMetadataResolver

RuntimeMetadataResolver:

constructor

  • new RuntimeMetadataResolver(_directiveResolver: DirectiveResolver, _pipeResolver: PipeResolver, _viewResolver: ViewResolver, _platformDirectives: Type[], _platformPipes: Type[]): RuntimeMetadataResolver
  • Parameters

    • _directiveResolver: DirectiveResolver
    • _pipeResolver: PipeResolver
    • _viewResolver: ViewResolver
    • _platformDirectives: Type[]
    • _platformPipes: Type[]

    Returns RuntimeMetadataResolver

_anonymousTypeIndex

_anonymousTypeIndex: number

_anonymousTypes

_anonymousTypes: Map<Object, number>

_directiveCache

_directiveCache: Map<Type, CompileDirectiveMetadata>

_directiveResolver

_directiveResolver: DirectiveResolver

_pipeCache

_pipeCache: Map<Type, CompilePipeMetadata>

_pipeResolver

_pipeResolver: PipeResolver

_platformDirectives

_platformDirectives: Type[]

_platformPipes

_platformPipes: Type[]

_viewResolver

_viewResolver: ViewResolver

getDirectiveMetadata

  • Parameters

    • directiveType: Type

    Returns CompileDirectiveMetadata

getPipeMetadata

  • Parameters

    • pipeType: Type

    Returns CompilePipeMetadata

getViewDirectivesMetadata

  • Parameters

    • component: Type

    Returns CompileDirectiveMetadata[]

getViewPipesMetadata

  • Parameters

    • component: Type

    Returns CompilePipeMetadata[]

sanitizeName

  • sanitizeName(obj: any): string
  • Wrap the stringify method to avoid naming things function (arg1...) {

    Parameters

    • obj: any

    Returns string

calcModuleUrl

  • calcModuleUrl(type: Type, cmpMetadata: ComponentMetadata): string
  • Parameters

    • type: Type
    • cmpMetadata: ComponentMetadata

    Returns string

flattenArray

  • flattenArray(tree: any[], out: Array<Type | any[]>): void
  • Parameters

    • tree: any[]
    • out: Array<Type | any[]>

    Returns void

flattenDirectives

  • flattenDirectives(view: ViewMetadata, platformDirectives: any[]): Type[]
  • Parameters

    • view: ViewMetadata
    • platformDirectives: any[]

    Returns Type[]

flattenPipes

  • flattenPipes(view: ViewMetadata, platformPipes: any[]): Type[]
  • Parameters

    • view: ViewMetadata
    • platformPipes: any[]

    Returns Type[]

isValidType

  • isValidType(value: Type): boolean
  • Parameters

    • value: Type

    Returns boolean

"node_modules/angular2/ts/src/compiler/schema/dom_element_schema_registry"

"node_modules/angular2/ts/src/compiler/schema/dom_element_schema_registry":

DomElementSchemaRegistry

DomElementSchemaRegistry:

_protoElements

_protoElements: Map<string, Element>

_getProtoElement

  • _getProtoElement(tagName: string): Element
  • Parameters

    • tagName: string

    Returns Element

getMappedPropName

  • getMappedPropName(propName: string): string

hasProperty

  • hasProperty(tagName: string, propName: string): boolean
  • Parameters

    • tagName: string
    • propName: string

    Returns boolean

NAMESPACE_URIS

NAMESPACE_URIS: object

Type declaration

  • svg: string
  • xlink: string

"node_modules/angular2/ts/src/compiler/schema/element_schema_registry"

"node_modules/angular2/ts/src/compiler/schema/element_schema_registry":

ElementSchemaRegistry

ElementSchemaRegistry:

getMappedPropName

  • getMappedPropName(propName: string): string
  • Parameters

    • propName: string

    Returns string

hasProperty

  • hasProperty(tagName: string, propName: string): boolean
  • Parameters

    • tagName: string
    • propName: string

    Returns boolean

"node_modules/angular2/ts/src/compiler/selector"

"node_modules/angular2/ts/src/compiler/selector":

CssSelector

CssSelector:

A css selector contains an element name, css classes and attribute/value pairs with the purpose of selecting subsets out of them.

attrs

attrs: string[]

classNames

classNames: string[]

element

element: string

notSelectors

notSelectors: CssSelector[]

addAttribute

  • addAttribute(name: string, value?: string): void
  • Parameters

    • name: string
    • Default value value: string = _EMPTY_ATTR_VALUE

    Returns void

addClassName

  • addClassName(name: string): void
  • Parameters

    • name: string

    Returns void

getMatchingElementTemplate

  • getMatchingElementTemplate(): string
  • Gets a template string for an element that matches the selector.

    Returns string

isElementSelector

  • isElementSelector(): boolean
  • Returns boolean

setElement

  • setElement(element?: string): void
  • Parameters

    • Default value element: string = null

    Returns void

toString

  • toString(): string
  • Returns string

parse

  • Parameters

    • selector: string

    Returns CssSelector[]

SelectorContext

SelectorContext:

constructor

cbContext

cbContext: any

listContext

listContext: SelectorListContext

notSelectors

notSelectors: CssSelector[]

selector

selector: CssSelector

finalize

  • finalize(cssSelector: CssSelector, callback: function): boolean
  • Parameters

    Returns boolean

SelectorListContext

SelectorListContext:

constructor

alreadyMatched

alreadyMatched: boolean

selectors

selectors: CssSelector[]

SelectorMatcher

SelectorMatcher:

Reads a list of CssSelectors and allows to calculate which ones are contained in a given CssSelector.

_attrValueMap

_attrValueMap: Map<string, Map<string, Array<SelectorContext>>>

_attrValuePartialMap

_attrValuePartialMap: Map<string, Map<string, SelectorMatcher>>

_classMap

_classMap: Map<string, Array<SelectorContext>>

_classPartialMap

_classPartialMap: Map<string, SelectorMatcher>

_elementMap

_elementMap: Map<string, Array<SelectorContext>>

_elementPartialMap

_elementPartialMap: Map<string, SelectorMatcher>

_listContexts

_listContexts: SelectorListContext[]

_addPartial

_addSelectable

  • Add an object that can be found later on by calling match.

    Parameters

    • cssSelector: CssSelector

      A css selector

    • callbackCtxt: any

      An opaque object that will be given to the callback of the match function

    • listContext: SelectorListContext

    Returns void

_addTerminal

  • Parameters

    Returns void

_matchPartial

  • internal

    Parameters

    Returns boolean

_matchTerminal

  • internal

    Parameters

    Returns boolean

addSelectables

  • addSelectables(cssSelectors: CssSelector[], callbackCtxt?: any): void
  • Parameters

    • cssSelectors: CssSelector[]
    • Optional callbackCtxt: any

    Returns void

match

  • match(cssSelector: CssSelector, matchedCallback: function): boolean
  • Find the objects that have been added via addSelectable whose css selector is contained in the given css selector.

    Parameters

    • cssSelector: CssSelector

      A css selector

    • matchedCallback: function

      This callback will be called with the object handed into addSelectable

    Returns boolean

    boolean true if a match was found

createNotMatcher

_EMPTY_ATTR_VALUE

_EMPTY_ATTR_VALUE: string

_SELECTOR_REGEXP

_SELECTOR_REGEXP: RegExp

"node_modules/angular2/ts/src/compiler/shadow_css"

"node_modules/angular2/ts/src/compiler/shadow_css":

CssRule

CssRule:

constructor

  • new CssRule(selector: string, content: string): CssRule
  • Parameters

    • selector: string
    • content: string

    Returns CssRule

content

content: string

selector

selector: string

ShadowCss

ShadowCss:

This file is a port of shadowCSS from webcomponents.js to TypeScript.

Please make sure to keep to edits in sync with the source file.

Source: https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js

The original file level comment is reproduced below

constructor

  • Returns ShadowCss

strictStyling

strictStyling: boolean

_applySelectorScope

  • _applySelectorScope(selector: string, scopeSelector: string, hostSelector: string): string
  • Parameters

    • selector: string
    • scopeSelector: string
    • hostSelector: string

    Returns string

_applySimpleSelectorScope

  • _applySimpleSelectorScope(selector: string, scopeSelector: string, hostSelector: string): string
  • Parameters

    • selector: string
    • scopeSelector: string
    • hostSelector: string

    Returns string

_applyStrictSelectorScope

  • _applyStrictSelectorScope(selector: string, scopeSelector: string): string
  • Parameters

    • selector: string
    • scopeSelector: string

    Returns string

_colonHostContextPartReplacer

  • _colonHostContextPartReplacer(host: string, part: string, suffix: string): string
  • Parameters

    • host: string
    • part: string
    • suffix: string

    Returns string

_colonHostPartReplacer

  • _colonHostPartReplacer(host: string, part: string, suffix: string): string
  • Parameters

    • host: string
    • part: string
    • suffix: string

    Returns string

_convertColonHost

  • _convertColonHost(cssText: string): string
  • Parameters

    • cssText: string

    Returns string

_convertColonHostContext

  • _convertColonHostContext(cssText: string): string
  • Parameters

    • cssText: string

    Returns string

_convertColonRule

  • _convertColonRule(cssText: string, regExp: RegExp, partReplacer: Function): string
  • Parameters

    • cssText: string
    • regExp: RegExp
    • partReplacer: Function

    Returns string

_convertShadowDOMSelectors

  • _convertShadowDOMSelectors(cssText: string): string
  • Parameters

    • cssText: string

    Returns string

_extractUnscopedRulesFromCssText

  • _extractUnscopedRulesFromCssText(cssText: string): string
  • Parameters

    • cssText: string

    Returns string

_insertDirectives

  • _insertDirectives(cssText: string): string
  • Parameters

    • cssText: string

    Returns string

_insertPolyfillDirectivesInCssText

  • _insertPolyfillDirectivesInCssText(cssText: string): string
  • Parameters

    • cssText: string

    Returns string

_insertPolyfillHostInCssText

  • _insertPolyfillHostInCssText(selector: string): string
  • Parameters

    • selector: string

    Returns string

_insertPolyfillRulesInCssText

  • _insertPolyfillRulesInCssText(cssText: string): string
  • Parameters

    • cssText: string

    Returns string

_makeScopeMatcher

  • _makeScopeMatcher(scopeSelector: string): RegExp
  • Parameters

    • scopeSelector: string

    Returns RegExp

_scopeCssText

  • _scopeCssText(cssText: string, scopeSelector: string, hostSelector: string): string
  • Parameters

    • cssText: string
    • scopeSelector: string
    • hostSelector: string

    Returns string

_scopeSelector

  • _scopeSelector(selector: string, scopeSelector: string, hostSelector: string, strict: boolean): string
  • Parameters

    • selector: string
    • scopeSelector: string
    • hostSelector: string
    • strict: boolean

    Returns string

_scopeSelectors

  • _scopeSelectors(cssText: string, scopeSelector: string, hostSelector: string): string
  • Parameters

    • cssText: string
    • scopeSelector: string
    • hostSelector: string

    Returns string

_selectorNeedsScoping

  • _selectorNeedsScoping(selector: string, scopeSelector: string): boolean
  • Parameters

    • selector: string
    • scopeSelector: string

    Returns boolean

shimCssText

  • shimCssText(cssText: string, selector: string, hostSelector?: string): string
  • Parameters

    • cssText: string
    • selector: string
    • Default value hostSelector: string = ""

    Returns string

StringWithEscapedBlocks

StringWithEscapedBlocks:

constructor

  • Parameters

    • escapedString: string
    • blocks: string[]

    Returns StringWithEscapedBlocks

blocks

blocks: string[]

escapedString

escapedString: string

BLOCK_PLACEHOLDER

BLOCK_PLACEHOLDER: string

CLOSE_CURLY

CLOSE_CURLY: string

OPEN_CURLY

OPEN_CURLY: string

_colonHostContextRe

_colonHostContextRe: RegExp

_colonHostRe

_colonHostRe: RegExp

_commentRe

_commentRe: RegExp

_cssColonHostContextRe

_cssColonHostContextRe: RegExp

_cssColonHostRe

_cssColonHostRe: RegExp

_cssContentNextSelectorRe

_cssContentNextSelectorRe: RegExp

_cssContentRuleRe

_cssContentRuleRe: RegExp

_cssContentUnscopedRuleRe

_cssContentUnscopedRuleRe: RegExp

_curlyRe

_curlyRe: RegExp

_parenSuffix

_parenSuffix: string

_polyfillHost

_polyfillHost: string

_polyfillHostContext

_polyfillHostContext: string

_polyfillHostNoCombinator

_polyfillHostNoCombinator: string

_polyfillHostRe

_polyfillHostRe: RegExp

_ruleRe

_ruleRe: RegExp

_selectorReSuffix

_selectorReSuffix: string

_shadowDOMSelectorsRe

_shadowDOMSelectorsRe: Array<RegExp>

_shadowDeepSelectors

_shadowDeepSelectors: RegExp

escapeBlocks

  • Parameters

    • input: string

    Returns StringWithEscapedBlocks

processRules

  • processRules(input: string, ruleCallback: Function): string
  • Parameters

    • input: string
    • ruleCallback: Function

    Returns string

stripComments

  • stripComments(input: string): string
  • Parameters

    • input: string

    Returns string

"node_modules/angular2/ts/src/compiler/source_module"

"node_modules/angular2/ts/src/compiler/source_module":

SourceExpression

SourceExpression:

constructor

  • new SourceExpression(declarations: string[], expression: string): SourceExpression
  • Parameters

    • declarations: string[]
    • expression: string

    Returns SourceExpression

declarations

declarations: string[]

expression

expression: string

SourceExpressions

SourceExpressions:

constructor

  • new SourceExpressions(declarations: string[], expressions: string[]): SourceExpressions
  • Parameters

    • declarations: string[]
    • expressions: string[]

    Returns SourceExpressions

declarations

declarations: string[]

expressions

expressions: string[]

SourceModule

SourceModule:

Represents generated source code with module references. Internal to the Angular compiler.

constructor

  • new SourceModule(moduleUrl: string, sourceWithModuleRefs: string): SourceModule
  • Parameters

    • moduleUrl: string
    • sourceWithModuleRefs: string

    Returns SourceModule

moduleUrl

moduleUrl: string

sourceWithModuleRefs

sourceWithModuleRefs: string

getSourceWithImports

  • Returns SourceWithImports

getSourceWithoutImports

  • getSourceWithoutImports(sourceWithModuleRefs: string): string
  • Parameters

    • sourceWithModuleRefs: string

    Returns string

SourceWithImports

SourceWithImports:

Represents generated source code with imports. Internal to the Angular compiler.

constructor

  • Parameters

    • source: string
    • imports: string[]

    Returns SourceWithImports

imports

imports: string[]

source

source: string

MODULE_REGEXP

MODULE_REGEXP: RegExp

moduleRef

  • moduleRef(moduleUrl: any): string
  • Parameters

    • moduleUrl: any

    Returns string

"node_modules/angular2/ts/src/compiler/style_compiler"

"node_modules/angular2/ts/src/compiler/style_compiler":

StyleCompiler

StyleCompiler:

constructor

  • new StyleCompiler(_xhr: XHR, _urlResolver: UrlResolver): StyleCompiler
  • Parameters

    • _xhr: XHR
    • _urlResolver: UrlResolver

    Returns StyleCompiler

_shadowCss

_shadowCss: ShadowCss

_styleCache

_styleCache: Map<string, Promise<string[]>>

_urlResolver

_urlResolver: UrlResolver

_xhr

_xhr: XHR

_createModuleUrl

  • _createModuleUrl(stylesheetUrl: string, shim: boolean): string
  • Parameters

    • stylesheetUrl: string
    • shim: boolean

    Returns string

_loadStyles

  • _loadStyles(plainStyles: string[], absUrls: string[], encapsulate: boolean): Promise<Array<string | any[]>>
  • Parameters

    • plainStyles: string[]
    • absUrls: string[]
    • encapsulate: boolean

    Returns Promise<Array<string | any[]>>

_shimIfNeeded

  • _shimIfNeeded(style: string, shim: boolean): string
  • Parameters

    • style: string
    • shim: boolean

    Returns string

_styleCodeGen

  • _styleCodeGen(plainStyles: string[], absUrls: string[], shim: boolean): SourceExpression
  • Parameters

    • plainStyles: string[]
    • absUrls: string[]
    • shim: boolean

    Returns SourceExpression

_styleModule

  • Parameters

    Returns SourceModule

clearCache

  • clearCache(): void
  • Returns void

compileComponentCodeGen

compileComponentRuntime

  • Parameters

    Returns Promise<Array<string | any[]>>

compileStylesheetCodeGen

  • compileStylesheetCodeGen(stylesheetUrl: string, cssText: string): SourceModule[]
  • Parameters

    • stylesheetUrl: string
    • cssText: string

    Returns SourceModule[]

COMPONENT_VARIABLE

COMPONENT_VARIABLE: string

CONTENT_ATTR

CONTENT_ATTR: string

HOST_ATTR

HOST_ATTR: string

"node_modules/angular2/ts/src/compiler/style_url_resolver"

"node_modules/angular2/ts/src/compiler/style_url_resolver":

StyleWithImports

StyleWithImports:

constructor

  • Parameters

    • style: string
    • styleUrls: string[]

    Returns StyleWithImports

style

style: string

styleUrls

styleUrls: string[]

_cssImportRe

_cssImportRe: RegExp

_urlWithSchemaRe

_urlWithSchemaRe: RegExp

extractStyleUrls

  • extractStyleUrls(resolver: UrlResolver, baseUrl: string, cssText: string): StyleWithImports
  • Rewrites stylesheets by resolving and removing the @import urls that are either relative or don't have a package: scheme

    Parameters

    • resolver: UrlResolver
    • baseUrl: string
    • cssText: string

    Returns StyleWithImports

isStyleUrlResolvable

  • isStyleUrlResolvable(url: string): boolean
  • Parameters

    • url: string

    Returns boolean

"node_modules/angular2/ts/src/compiler/template_ast"

"node_modules/angular2/ts/src/compiler/template_ast":

PropertyBindingType

PropertyBindingType:

Enumeration of types of property bindings.

Attribute

Attribute:

A binding to an element attribute (e.g. [attr.name]="expression").

Class

Class:

A binding to a CSS class (e.g. [class.name]="condition").

Property

Property:

A normal binding to a property (e.g. [property]="expression").

Style

Style:

A binding to a style rule (e.g. [style.rule]="expression").

AttrAst

AttrAst:

A plain attribute on an element.

constructor

  • Parameters

    Returns AttrAst

name

name: string

sourceSpan

sourceSpan: ParseSourceSpan

value

value: string

visit

BoundDirectivePropertyAst

BoundDirectivePropertyAst:

A directive property with a bound value (e.g. `*ngIf="condition").

constructor

directiveName

directiveName: string

sourceSpan

sourceSpan: ParseSourceSpan

templateName

templateName: string

value

value: AST

visit

  • Parameters

    Returns any

BoundElementPropertyAst

BoundElementPropertyAst:

A binding for an element property (e.g. [property]="expression").

constructor

name

name: string

sourceSpan

sourceSpan: ParseSourceSpan

type

unit

unit: string

value

value: AST

visit

BoundEventAst

BoundEventAst:

A binding for an element event (e.g. (event)="handler()").

constructor

  • Parameters

    Returns BoundEventAst

handler

handler: AST

name

name: string

sourceSpan

sourceSpan: ParseSourceSpan

target

target: string

fullName

fullName:

visit

BoundTextAst

BoundTextAst:

A bound expression within the text of a template.

constructor

  • Parameters

    Returns BoundTextAst

ngContentIndex

ngContentIndex: number

sourceSpan

sourceSpan: ParseSourceSpan

value

value: AST

visit

DirectiveAst

DirectiveAst:

A directive declared on an element.

constructor

directive

exportAsVars

exportAsVars: VariableAst[]

hostEvents

hostEvents: BoundEventAst[]

hostProperties

hostProperties: BoundElementPropertyAst[]

inputs

sourceSpan

sourceSpan: ParseSourceSpan

visit

  • Parameters

    Returns any

ElementAst

ElementAst:

An element declaration in a template.

constructor

attrs

attrs: AttrAst[]

children

children: TemplateAst[]

directives

directives: DirectiveAst[]

exportAsVars

exportAsVars: VariableAst[]

inputs

name

name: string

ngContentIndex

ngContentIndex: number

outputs

outputs: BoundEventAst[]

sourceSpan

sourceSpan: ParseSourceSpan

getComponent

  • Get the component associated with this element, if any.

    Returns CompileDirectiveMetadata

isBound

  • isBound(): boolean
  • Whether the element has any active bindings (inputs, outputs, vars, or directives).

    Returns boolean

visit

EmbeddedTemplateAst

EmbeddedTemplateAst:

A <template> element included in an Angular template.

constructor

attrs

attrs: AttrAst[]

children

children: TemplateAst[]

directives

directives: DirectiveAst[]

ngContentIndex

ngContentIndex: number

outputs

outputs: BoundEventAst[]

sourceSpan

sourceSpan: ParseSourceSpan

vars

vars: VariableAst[]

visit

  • Parameters

    Returns any

NgContentAst

NgContentAst:

Position where content is to be projected (instance of <ng-content> in a template).

constructor

  • Parameters

    Returns NgContentAst

index

index: number

ngContentIndex

ngContentIndex: number

sourceSpan

sourceSpan: ParseSourceSpan

visit

  • Parameters

    Returns any

TextAst

TextAst:

A segment of text within the template.

constructor

  • Parameters

    Returns TextAst

ngContentIndex

ngContentIndex: number

sourceSpan

sourceSpan: ParseSourceSpan

value

value: string

visit

VariableAst

VariableAst:

A variable declaration on an element (e.g. #var="expression").

constructor

  • Parameters

    Returns VariableAst

name

name: string

sourceSpan

sourceSpan: ParseSourceSpan

value

value: string

visit

TemplateAst

TemplateAst:

An Abstract Syntax Tree node representing part of a parsed Angular template.

sourceSpan

sourceSpan: ParseSourceSpan

The source span from which this node was parsed.

visit

  • Visit this node and possibly transform it.

    Parameters

    Returns any

TemplateAstVisitor

TemplateAstVisitor:

A visitor for TemplateAst trees that will process each node.

visitAttr

  • visitAttr(ast: AttrAst, context: any): any
  • Parameters

    Returns any

visitBoundText

  • Parameters

    Returns any

visitDirective

  • Parameters

    Returns any

visitDirectiveProperty

  • Parameters

    Returns any

visitElement

  • visitElement(ast: ElementAst, context: any): any
  • Parameters

    Returns any

visitElementProperty

  • Parameters

    Returns any

visitEmbeddedTemplate

  • Parameters

    Returns any

visitEvent

  • Parameters

    Returns any

visitNgContent

  • Parameters

    Returns any

visitText

  • visitText(ast: TextAst, context: any): any
  • Parameters

    Returns any

visitVariable

  • Parameters

    Returns any

templateVisitAll

"node_modules/angular2/ts/src/compiler/template_compiler"

"node_modules/angular2/ts/src/compiler/template_compiler":

CompiledTemplate

CompiledTemplate:

viewFactory

viewFactory: Function

init

  • init(viewFactory: Function): void
  • Parameters

    • viewFactory: Function

    Returns void

DirectiveCollector

DirectiveCollector:

components

directives

visitAttr

  • visitAttr(ast: AttrAst, attrNameAndValues: object): any
  • Parameters

    • ast: AttrAst
    • attrNameAndValues: object
      • [key: string]: string

    Returns any

visitBoundText

visitDirective

visitDirectiveProperty

visitElement

  • visitElement(ast: ElementAst, context: any): any

visitElementProperty

visitEmbeddedTemplate

visitEvent

  • Parameters

    Returns any

visitNgContent

visitText

  • visitText(ast: TextAst, context: any): any
  • Parameters

    Returns any

visitVariable

findUsedDirectives

NormalizedComponentWithViewDirectives

NormalizedComponentWithViewDirectives:

constructor

component

directives

pipes

PipeVisitor

PipeVisitor:

collector

collector: PipeCollector

visitAttr

  • visitAttr(ast: AttrAst, attrNameAndValues: object): any
  • Parameters

    • ast: AttrAst
    • attrNameAndValues: object
      • [key: string]: string

    Returns any

visitBoundText

visitDirective

visitDirectiveProperty

visitElement

  • visitElement(ast: ElementAst, context: any): any

visitElementProperty

visitEmbeddedTemplate

visitEvent

  • Parameters

    Returns any

visitNgContent

visitText

  • visitText(ast: TextAst, context: any): any
  • Parameters

    Returns any

visitVariable

TemplateCompiler

TemplateCompiler:

An internal module of the Angular compiler that begins with component types, extracts templates, and eventually produces a compiled version of the component ready for linking into an application.

constructor

_cdCompiler

_compiledTemplateCache

_compiledTemplateCache: Map<any, CompiledTemplate>

_compiledTemplateDone

_compiledTemplateDone: Map<any, Promise<CompiledTemplate>>

_genConfig

_genConfig: ChangeDetectorGenConfig

_hostCacheKeys

_hostCacheKeys: Map<Type, any>

_protoViewCompiler

_protoViewCompiler: ProtoViewCompiler

_resolvedMetadataCache

_resolvedMetadataCache: ResolvedMetadataCache

_runtimeMetadataResolver

_runtimeMetadataResolver: RuntimeMetadataResolver

_styleCompiler

_styleCompiler: StyleCompiler

_templateNormalizer

_templateNormalizer: TemplateNormalizer

_templateParser

_templateParser: TemplateParser

_viewCompiler

_viewCompiler: ViewCompiler

_compileComponentCodeGen

_compileComponentRuntime

_compileNestedComponentRuntime

  • _compileNestedComponentRuntime(childComponentDir: CompileDirectiveMetadata, parentCompilingComponentsPath: any[], childPromises: Promise<any>[]): void
  • Parameters

    Returns void

_createViewFactoryCodeGen

_createViewFactoryRuntime

_getNestedComponentViewFactory

  • Parameters

    Returns Function

clearCache

  • clearCache(): void
  • Returns void

compileHostComponentRuntime

  • compileHostComponentRuntime(type: Type): Promise<HostViewFactory>
  • Parameters

    • type: Type

    Returns Promise<HostViewFactory>

compileStylesheetCodeGen

  • compileStylesheetCodeGen(stylesheetUrl: string, cssText: string): SourceModule[]
  • Parameters

    • stylesheetUrl: string
    • cssText: string

    Returns SourceModule[]

compileTemplatesCodeGen

normalizeDirectiveMetadata

METADATA_CACHE_MODULE_REF

METADATA_CACHE_MODULE_REF: string

assertComponent

  • Parameters

    Returns void

codeGenComponentViewFactoryName

  • Parameters

    Returns string

codeGenHostViewFactoryName

  • Parameters

    Returns string

filterPipes

mergeStringMaps

  • mergeStringMaps(maps: Array<object>): object
  • Parameters

    • maps: Array<object>

    Returns object

    • [key: string]: any

removeDuplicates

templateModuleUrl

  • templateModuleUrl(moduleUrl: string): string
  • Parameters

    • moduleUrl: string

    Returns string

"node_modules/angular2/ts/src/compiler/template_normalizer"

"node_modules/angular2/ts/src/compiler/template_normalizer":

TemplateNormalizer

TemplateNormalizer:

constructor

  • Parameters

    • _xhr: XHR
    • _urlResolver: UrlResolver
    • _htmlParser: HtmlParser

    Returns TemplateNormalizer

_htmlParser

_htmlParser: HtmlParser

_urlResolver

_urlResolver: UrlResolver

_xhr

_xhr: XHR

normalizeLoadedTemplate

normalizeTemplate

TemplatePreparseVisitor

TemplatePreparseVisitor:

ngContentSelectors

ngContentSelectors: string[]

ngNonBindableStackCount

ngNonBindableStackCount: number

styleUrls

styleUrls: string[]

styles

styles: string[]

visitAttr

  • Parameters

    Returns any

visitComment

visitElement

visitText

  • Parameters

    Returns any

"node_modules/angular2/ts/src/compiler/template_parser"

"node_modules/angular2/ts/src/compiler/template_parser":

BoundElementOrDirectiveProperty

BoundElementOrDirectiveProperty:

constructor

expression

expression: AST

isLiteral

isLiteral: boolean

name

name: string

sourceSpan

sourceSpan: ParseSourceSpan

Component

Component:

constructor

  • new Component(ngContentIndexMatcher: SelectorMatcher, wildcardNgContentIndex: number): Component
  • Parameters

    • ngContentIndexMatcher: SelectorMatcher
    • wildcardNgContentIndex: number

    Returns Component

ngContentIndexMatcher

ngContentIndexMatcher: SelectorMatcher

wildcardNgContentIndex

wildcardNgContentIndex: number

findNgContentIndex

  • findNgContentIndex(selector: CssSelector): number
  • Parameters

    • selector: CssSelector

    Returns number

create

  • Parameters

    Returns Component

NonBindableVisitor

NonBindableVisitor:

visitAttr

visitComment

visitElement

visitText

  • Parameters

    Returns TextAst

PipeCollector

PipeCollector:

pipes

pipes: Set<string>

visitAll

  • visitAll(asts: AST[]): any
  • Parameters

    • asts: AST[]

    Returns any

visitBinary

  • visitBinary(ast: Binary): any
  • Parameters

    • ast: Binary

    Returns any

visitChain

  • visitChain(ast: Chain): any
  • Parameters

    • ast: Chain

    Returns any

visitConditional

  • visitConditional(ast: Conditional): any
  • Parameters

    • ast: Conditional

    Returns any

visitFunctionCall

  • visitFunctionCall(ast: FunctionCall): any
  • Parameters

    • ast: FunctionCall

    Returns any

visitImplicitReceiver

  • visitImplicitReceiver(ast: ImplicitReceiver): any
  • Parameters

    • ast: ImplicitReceiver

    Returns any

visitInterpolation

  • visitInterpolation(ast: Interpolation): any
  • Parameters

    • ast: Interpolation

    Returns any

visitKeyedRead

  • visitKeyedRead(ast: KeyedRead): any
  • Parameters

    • ast: KeyedRead

    Returns any

visitKeyedWrite

  • visitKeyedWrite(ast: KeyedWrite): any
  • Parameters

    • ast: KeyedWrite

    Returns any

visitLiteralArray

  • visitLiteralArray(ast: LiteralArray): any
  • Parameters

    • ast: LiteralArray

    Returns any

visitLiteralMap

  • visitLiteralMap(ast: LiteralMap): any
  • Parameters

    • ast: LiteralMap

    Returns any

visitLiteralPrimitive

  • visitLiteralPrimitive(ast: LiteralPrimitive): any
  • Parameters

    • ast: LiteralPrimitive

    Returns any

visitMethodCall

  • visitMethodCall(ast: MethodCall): any
  • Parameters

    • ast: MethodCall

    Returns any

visitPipe

  • visitPipe(ast: BindingPipe): any
  • Parameters

    • ast: BindingPipe

    Returns any

visitPrefixNot

  • visitPrefixNot(ast: PrefixNot): any
  • Parameters

    • ast: PrefixNot

    Returns any

visitPropertyRead

  • visitPropertyRead(ast: PropertyRead): any
  • Parameters

    • ast: PropertyRead

    Returns any

visitPropertyWrite

  • visitPropertyWrite(ast: PropertyWrite): any
  • Parameters

    • ast: PropertyWrite

    Returns any

visitQuote

  • visitQuote(ast: Quote): any
  • Parameters

    • ast: Quote

    Returns any

visitSafeMethodCall

  • visitSafeMethodCall(ast: SafeMethodCall): any
  • Parameters

    • ast: SafeMethodCall

    Returns any

visitSafePropertyRead

  • visitSafePropertyRead(ast: SafePropertyRead): any
  • Parameters

    • ast: SafePropertyRead

    Returns any

TemplateParseError

TemplateParseError:

constructor

msg

msg: string

span

toString

  • toString(): string
  • Returns string

TemplateParseVisitor

TemplateParseVisitor:

constructor

_exprParser

_exprParser: Parser

_schemaRegistry

_schemaRegistry: ElementSchemaRegistry

directivesIndex

directivesIndex: Map<CompileDirectiveMetadata, number>

errors

ngContentCount

ngContentCount: number

pipesByName

pipesByName: Map<string, CompilePipeMetadata>

selectorMatcher

selectorMatcher: SelectorMatcher

_assertAllEventsPublishedByDirectives

  • Parameters

    Returns void

_assertNoComponentsNorElementBindingsOnTemplate

_assertOnlyOneComponent

  • Parameters

    Returns void

_checkPipes

  • Parameters

    Returns void

_createDirectiveAsts

_createDirectiveHostEventAsts

  • Parameters

    Returns void

_createDirectiveHostPropertyAsts

  • Parameters

    Returns void

_createDirectivePropertyAsts

_createElementPropertyAst

_createElementPropertyAsts

_findComponentDirectiveNames

  • _findComponentDirectiveNames(directives: DirectiveAst[]): string[]
  • Parameters

    Returns string[]

_normalizeAttributeName

  • _normalizeAttributeName(attrName: string): string
  • Parameters

    • attrName: string

    Returns string

_parseAction

  • Parameters

    Returns ASTWithSource

_parseAssignmentEvent

  • _parseAssignmentEvent(name: string, expression: string, sourceSpan: ParseSourceSpan, targetMatchableAttrs: string[], targetEvents: BoundEventAst[]): void
  • Parameters

    Returns void

_parseAttr

_parseBinding

  • Parameters

    Returns ASTWithSource

_parseDirectives

  • Parameters

    • selectorMatcher: SelectorMatcher
    • elementCssSelector: CssSelector

    Returns CompileDirectiveMetadata[]

_parseEvent

  • _parseEvent(name: string, expression: string, sourceSpan: ParseSourceSpan, targetMatchableAttrs: string[], targetEvents: BoundEventAst[]): void
  • Parameters

    Returns void

_parseInlineTemplateBinding

_parseInterpolation

  • _parseInterpolation(value: string, sourceSpan: ParseSourceSpan): ASTWithSource
  • Parameters

    Returns ASTWithSource

_parseLiteralAttr

_parseProperty

  • Parameters

    Returns void

_parsePropertyAst

  • Parameters

    Returns void

_parsePropertyInterpolation

  • Parameters

    Returns boolean

_parseTemplateBindings

  • _parseTemplateBindings(value: string, sourceSpan: ParseSourceSpan): TemplateBinding[]
  • Parameters

    Returns TemplateBinding[]

_parseVariable

  • Parameters

    Returns void

_reportError

  • Parameters

    Returns void

visitAttr

visitComment

visitElement

  • Parameters

    Returns any

visitText

  • Parameters

    Returns any

TemplateParser

TemplateParser:

constructor

  • Parameters

    Returns TemplateParser

_exprParser

_exprParser: Parser

_htmlParser

_htmlParser: HtmlParser

_schemaRegistry

_schemaRegistry: ElementSchemaRegistry

transforms

transforms: TemplateAstVisitor[]

parse

ATTRIBUTE_PREFIX

ATTRIBUTE_PREFIX: string

BIND_NAME_REGEXP

BIND_NAME_REGEXP: RegExp

CLASS_ATTR

CLASS_ATTR: string

CLASS_PREFIX

CLASS_PREFIX: string

EMPTY_COMPONENT

EMPTY_COMPONENT: Component

NON_BINDABLE_VISITOR

NON_BINDABLE_VISITOR: NonBindableVisitor

PROPERTY_PARTS_SEPARATOR

PROPERTY_PARTS_SEPARATOR: string

STYLE_PREFIX

STYLE_PREFIX: string

TEMPLATE_ATTR

TEMPLATE_ATTR: string

TEMPLATE_ATTR_PREFIX

TEMPLATE_ATTR_PREFIX: string

TEMPLATE_ELEMENT

TEMPLATE_ELEMENT: string

TEMPLATE_TRANSFORMS

TEMPLATE_TRANSFORMS: OpaqueToken

Provides an array of TemplateAstVisitors which will be used to transform parsed templates before compilation is invoked, allowing custom expression syntax and other advanced transformations.

This is currently an internal-only feature and not meant for general use.

TEXT_CSS_SELECTOR

TEXT_CSS_SELECTOR: CssSelector

createElementCssSelector

  • createElementCssSelector(elementName: string, matchableAttrs: string[]): CssSelector
  • Parameters

    • elementName: string
    • matchableAttrs: string[]

    Returns CssSelector

splitClasses

  • splitClasses(classAttrValue: string): string[]
  • Parameters

    • classAttrValue: string

    Returns string[]

"node_modules/angular2/ts/src/compiler/template_preparser"

"node_modules/angular2/ts/src/compiler/template_preparser":

PreparsedElementType

PreparsedElementType:

NG_CONTENT

NG_CONTENT:

OTHER

OTHER:

SCRIPT

SCRIPT:

STYLE

STYLE:

STYLESHEET

STYLESHEET:

PreparsedElement

PreparsedElement:

constructor

  • Parameters

    • type: PreparsedElementType
    • selectAttr: string
    • hrefAttr: string
    • nonBindable: boolean
    • projectAs: string

    Returns PreparsedElement

hrefAttr

hrefAttr: string

nonBindable

nonBindable: boolean

projectAs

projectAs: string

selectAttr

selectAttr: string

type

LINK_ELEMENT

LINK_ELEMENT: string

LINK_STYLE_HREF_ATTR

LINK_STYLE_HREF_ATTR: string

LINK_STYLE_REL_ATTR

LINK_STYLE_REL_ATTR: string

LINK_STYLE_REL_VALUE

LINK_STYLE_REL_VALUE: string

NG_CONTENT_ELEMENT

NG_CONTENT_ELEMENT: string

NG_CONTENT_SELECT_ATTR

NG_CONTENT_SELECT_ATTR: string

NG_NON_BINDABLE_ATTR

NG_NON_BINDABLE_ATTR: string

NG_PROJECT_AS

NG_PROJECT_AS: string

SCRIPT_ELEMENT

SCRIPT_ELEMENT: string

STYLE_ELEMENT

STYLE_ELEMENT: string

normalizeNgContentSelect

  • normalizeNgContentSelect(selectAttr: string): string
  • Parameters

    • selectAttr: string

    Returns string

preparseElement

"node_modules/angular2/ts/src/compiler/url_resolver"

"node_modules/angular2/ts/src/compiler/url_resolver":

_ComponentIndex

_ComponentIndex:

The index of each URI component in the return value of goog.uri.utils.split.

enum

{number}

Domain

Domain:

Fragment

Fragment:

Path

Path:

Port

Port:

QueryData

QueryData:

Scheme

Scheme:

UserInfo

UserInfo:

UrlResolver

UrlResolver:

Used by the Compiler when resolving HTML and CSS template URLs.

This class can be overridden by the application developer to create custom behavior.

See Compiler

Example

{@example compiler/ts/url_resolver/url_resolver.ts region='url_resolver'}

constructor

  • Parameters

    • Default value packagePrefix: string = null

    Returns UrlResolver

_packagePrefix

_packagePrefix: string

resolve

  • resolve(baseUrl: string, url: string): string
  • Resolves the url given the baseUrl:

    • when the url is null, the baseUrl is returned,
    • if url is relative ('path/to/here', './path/to/here'), the resolved url is a combination of baseUrl and url,
    • if url is absolute (it has a scheme: 'http://', 'https://' or start with '/'), the url is returned as is (ignoring the baseUrl)

    Parameters

    • baseUrl: string
    • url: string

    Returns string

    the resolved URL

DEFAULT_PACKAGE_URL_PROVIDER

DEFAULT_PACKAGE_URL_PROVIDER: Provider

A default provider for PACKAGE_ROOT_URL that maps to '/'.

_splitRe

_splitRe: RegExp

A regular expression for breaking a URI into its component parts.

http://www.gbiv.com/protocols/uri/rfc/rfc3986.html#RFC2234 says As the "first-match-wins" algorithm is identical to the "greedy" disambiguation method used by POSIX regular expressions, it is natural and commonplace to use a regular expression for parsing the potential five components of a URI reference.

The following line is the regular expression for breaking-down a well-formed URI reference into its components.

^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?
 12            3  4          5       6  7        8 9

The numbers in the second line above are only to assist readability; they indicate the reference points for each subexpression (i.e., each paired parenthesis). We refer to the value matched for subexpression as $. For example, matching the above expression to

    http://www.ics.uci.edu/pub/ietf/uri/#Related
results in the following subexpression matches:
   $1 = http:
   $2 = http
   $3 = //www.ics.uci.edu
   $4 = www.ics.uci.edu
   $5 = /pub/ietf/uri/
   $6 = 
   $7 = 
   $8 = #Related
   $9 = Related
where indicates that the component is not present, as is the case for the query component in the above example. Therefore, we can determine the value of the five components as
   scheme    = $2
   authority = $4
   path      = $5
   query     = $7
   fragment  = $9

The regular expression has been modified slightly to expose the userInfo, domain, and port separately from the authority. The modified version yields

   $1 = http              scheme
   $2 =        userInfo -\
   $3 = www.ics.uci.edu   domain     | authority
   $4 =        port     -/
   $5 = /pub/ietf/uri/    path
   $6 =        query without ?
   $7 = Related           fragment without #
type

{!RegExp}

internal

_buildFromEncodedParts

  • _buildFromEncodedParts(opt_scheme?: string, opt_userInfo?: string, opt_domain?: string, opt_port?: string, opt_path?: string, opt_queryData?: string, opt_fragment?: string): string
  • Builds a URI string from already-encoded parts.

    No encoding is performed. Any component may be omitted as either null or undefined.

    Parameters

    • Optional opt_scheme: string

      The scheme such as 'http'.

    • Optional opt_userInfo: string

      The user name before the '@'.

    • Optional opt_domain: string

      The domain such as 'www.google.com', already URI-encoded.

    • Optional opt_port: string

      The port number.

    • Optional opt_path: string

      The path, already URI-encoded. If it is not empty, it must begin with a slash.

    • Optional opt_queryData: string

      The URI-encoded query data.

    • Optional opt_fragment: string

      The URI-encoded fragment identifier.

    Returns string

    The fully combined URI.

_joinAndCanonicalizePath

  • _joinAndCanonicalizePath(parts: any[]): string
  • Takes an array of the parts from split and canonicalizes the path part and then joins all the parts.

    Parameters

    • parts: any[]

    Returns string

_removeDotSegments

  • _removeDotSegments(path: string): string
  • Removes dot segments in given path component, as described in RFC 3986, section 5.2.4.

    Parameters

    • path: string

      A non-empty path component.

    Returns string

    Path component with removed dot segments.

_resolveUrl

  • _resolveUrl(base: string, url: string): string
  • Resolves a URL.

    Parameters

    • base: string

      The URL acting as the base URL.

    • url: string

    Returns string

_split

  • _split(uri: string): Array<string | any>
  • Splits a URI into its component parts.

    Each component can be accessed via the component indices; for example:

    goog.uri.utils.split(someStr)[goog.uri.utils.CompontentIndex.QUERY_DATA];
    

    Parameters

    • uri: string

      The URI string to examine.

    Returns Array<string | any>

    Each component still URI-encoded. Each component that is present will contain the encoded value, whereas components that are not present will be undefined or empty, depending on the browser's regular expression implementation. Never null, since arbitrary strings may still look like path names.

createWithoutPackagePrefix

  • Create a UrlResolver with no package prefix.

    Returns UrlResolver

getUrlScheme

  • getUrlScheme(url: string): string
  • Extract the scheme of a URL.

    Parameters

    • url: string

    Returns string

"node_modules/angular2/ts/src/compiler/util"

"node_modules/angular2/ts/src/compiler/util":

Expression

Expression:

constructor

  • new Expression(expression: string, isArray?: boolean): Expression
  • Parameters

    • expression: string
    • Default value isArray: boolean = false

    Returns Expression

expression

expression: string

isArray

isArray: boolean

Statement

Statement:

constructor

  • new Statement(statement: string): Statement
  • Parameters

    • statement: string

    Returns Statement

statement

statement: string

CAMEL_CASE_REGEXP

CAMEL_CASE_REGEXP: RegExp

CONST_VAR

CONST_VAR: string

DASH_CASE_REGEXP

DASH_CASE_REGEXP: RegExp

DOUBLE_QUOTE_ESCAPE_STRING_RE

DOUBLE_QUOTE_ESCAPE_STRING_RE: RegExp

MODULE_SUFFIX

MODULE_SUFFIX: string

SINGLE_QUOTE_ESCAPE_STRING_RE

SINGLE_QUOTE_ESCAPE_STRING_RE: RegExp

addAll

  • addAll(source: any[], target: any[]): void
  • Parameters

    • source: any[]
    • target: any[]

    Returns void

camelCaseToDashCase

  • camelCaseToDashCase(input: string): string
  • Parameters

    • input: string

    Returns string

codeGenArray

  • codeGenArray(data: any[]): string
  • Parameters

    • data: any[]

    Returns string

codeGenConstConstructorCall

  • codeGenConstConstructorCall(name: string): string
  • Parameters

    • name: string

    Returns string

codeGenExportVariable

  • codeGenExportVariable(name: string): string
  • Parameters

    • name: string

    Returns string

codeGenFlatArray

  • codeGenFlatArray(values: any[]): string
  • Parameters

    • values: any[]

    Returns string

codeGenFnHeader

  • codeGenFnHeader(params: string[], fnName?: string): string
  • Parameters

    • params: string[]
    • Default value fnName: string = ""

    Returns string

codeGenKeyValue

  • codeGenKeyValue(keyValue: any[]): string
  • Parameters

    • keyValue: any[]

    Returns string

codeGenStringMap

  • codeGenStringMap(keyValueArray: any[]): string
  • Parameters

    • keyValueArray: any[]

    Returns string

codeGenToString

  • codeGenToString(expr: string): string
  • Parameters

    • expr: string

    Returns string

codeGenValueFn

  • codeGenValueFn(params: string[], value: string, fnName?: string): string
  • Parameters

    • params: string[]
    • value: string
    • Default value fnName: string = ""

    Returns string

dashCaseToCamelCase

  • dashCaseToCamelCase(input: string): string
  • Parameters

    • input: string

    Returns string

escapeDoubleQuoteString

  • escapeDoubleQuoteString(input: string): string
  • Parameters

    • input: string

    Returns string

escapeSingleQuoteString

  • escapeSingleQuoteString(input: string): string
  • Parameters

    • input: string

    Returns string

escapeString

  • escapeString(input: string, re: RegExp): string
  • Parameters

    • input: string
    • re: RegExp

    Returns string

escapeValue

  • escapeValue(value: any): string
  • Parameters

    • value: any

    Returns string

flattenArray

  • flattenArray(source: any[], target: any[]): any[]
  • Parameters

    • source: any[]
    • target: any[]

    Returns any[]

splitAtColon

  • splitAtColon(input: string, defaultValues: string[]): string[]
  • Parameters

    • input: string
    • defaultValues: string[]

    Returns string[]

"node_modules/angular2/ts/src/compiler/view_compiler"

"node_modules/angular2/ts/src/compiler/view_compiler":

CodeGenViewFactory

CodeGenViewFactory:

constructor

_nextVarId

_nextVarId: number

changeDetectorExpressions

changeDetectorExpressions: SourceExpressions

component

componentViewFactory

componentViewFactory: Function

protoViews

styles

_nextAppVar

  • _nextAppVar(): string
  • Returns string

_nextDisposableVar

  • _nextDisposableVar(): string
  • Returns string

_nextRenderVar

  • _nextRenderVar(): string
  • Returns string

_nextVar

  • _nextVar(prefix: string): string
  • Parameters

    • prefix: string

    Returns string

appendProjectedNodes

createAndSetComponentView

createAppElement

createElement

createElementEventListener

createGlobalEventListener

createTemplateAnchor

createText

createViewFactory

  • Parameters

    Returns Expression

getProjectedNodes

  • Parameters

    • projectableNodes: Expression
    • ngContentIndex: number

    Returns Expression

setElementAttribute

  • Parameters

    Returns void

ParentElement

ParentElement:

constructor

appEl

appEl: EXPRESSION

component

contentNodesByNgContentIndex

contentNodesByNgContentIndex: Array<EXPRESSION>[]

renderNode

renderNode: EXPRESSION

addContentNode

  • addContentNode(ngContentIndex: number, nodeExpr: EXPRESSION): void
  • Parameters

    • ngContentIndex: number
    • nodeExpr: EXPRESSION

    Returns void

RuntimeViewFactory

RuntimeViewFactory:

constructor

  • Parameters

    Returns RuntimeViewFactory

changeDetectorFactories

changeDetectorFactories: Function[]

component

componentViewFactory

componentViewFactory: Function

protoViews

protoViews: CompileProtoView<AppProtoView, AppProtoElement>[]

styles

styles: Array<string | any[]>

appendProjectedNodes

  • appendProjectedNodes(renderer: Renderer, parent: any, nodes: any[], targetStatements: any[]): void
  • Parameters

    • renderer: Renderer
    • parent: any
    • nodes: any[]
    • targetStatements: any[]

    Returns void

createAndSetComponentView

  • createAndSetComponentView(renderer: Renderer, viewManager: AppViewManager_, appView: AppView, appEl: AppElement, component: CompileDirectiveMetadata, contentNodesByNgContentIndex: Array<Array<any | any[]>>, targetStatements: any[]): void
  • Parameters

    • renderer: Renderer
    • viewManager: AppViewManager_
    • appView: AppView
    • appEl: AppElement
    • component: CompileDirectiveMetadata
    • contentNodesByNgContentIndex: Array<Array<any | any[]>>
    • targetStatements: any[]

    Returns void

createAppElement

  • createAppElement(appProtoEl: AppProtoElement, appView: AppView, renderNode: any, parentAppEl: AppElement, embeddedViewFactory: Function, targetStatements: any[]): any
  • Parameters

    • appProtoEl: AppProtoElement
    • appView: AppView
    • renderNode: any
    • parentAppEl: AppElement
    • embeddedViewFactory: Function
    • targetStatements: any[]

    Returns any

createElement

  • createElement(renderer: Renderer, parent: any, name: string, rootSelector: string, targetStatements: any[]): any
  • Parameters

    • renderer: Renderer
    • parent: any
    • name: string
    • rootSelector: string
    • targetStatements: any[]

    Returns any

createElementEventListener

  • createElementEventListener(renderer: Renderer, appView: AppView, boundElementIndex: number, renderNode: any, eventAst: BoundEventAst, targetStatements: any[]): any
  • Parameters

    • renderer: Renderer
    • appView: AppView
    • boundElementIndex: number
    • renderNode: any
    • eventAst: BoundEventAst
    • targetStatements: any[]

    Returns any

createGlobalEventListener

  • createGlobalEventListener(renderer: Renderer, appView: AppView, boundElementIndex: number, eventAst: BoundEventAst, targetStatements: any[]): any
  • Parameters

    • renderer: Renderer
    • appView: AppView
    • boundElementIndex: number
    • eventAst: BoundEventAst
    • targetStatements: any[]

    Returns any

createTemplateAnchor

  • createTemplateAnchor(renderer: Renderer, parent: any, targetStatements: any[]): any
  • Parameters

    • renderer: Renderer
    • parent: any
    • targetStatements: any[]

    Returns any

createText

  • createText(renderer: Renderer, parent: any, text: string, targetStatements: any[]): any
  • Parameters

    • renderer: Renderer
    • parent: any
    • text: string
    • targetStatements: any[]

    Returns any

createViewFactory

  • createViewFactory(asts: TemplateAst[], embeddedTemplateIndex: number, targetStatements: any[]): Function
  • Parameters

    • asts: TemplateAst[]
    • embeddedTemplateIndex: number
    • targetStatements: any[]

    Returns Function

getProjectedNodes

  • getProjectedNodes(projectableNodes: any[], ngContentIndex: number): any[]
  • Parameters

    • projectableNodes: any[]
    • ngContentIndex: number

    Returns any[]

setElementAttribute

  • setElementAttribute(renderer: Renderer, renderNode: any, attrName: string, attrValue: string, targetStatements: any[]): void
  • Parameters

    • renderer: Renderer
    • renderNode: any
    • attrName: string
    • attrValue: string
    • targetStatements: any[]

    Returns void

ViewBuilderVisitor

ViewBuilderVisitor:

constructor

  • new ViewBuilderVisitor(renderer: EXPRESSION, viewManager: EXPRESSION, projectableNodes: EXPRESSION, rootSelector: EXPRESSION, view: EXPRESSION, protoView: CompileProtoView<EXPRESSION, EXPRESSION>, targetStatements: STATEMENT[], factory: ViewFactory<EXPRESSION, STATEMENT>): ViewBuilderVisitor
  • Parameters

    • renderer: EXPRESSION
    • viewManager: EXPRESSION
    • projectableNodes: EXPRESSION
    • rootSelector: EXPRESSION
    • view: EXPRESSION
    • protoView: CompileProtoView<EXPRESSION, EXPRESSION>
    • targetStatements: STATEMENT[]
    • factory: ViewFactory<EXPRESSION, STATEMENT>

    Returns ViewBuilderVisitor

appDisposables

appDisposables: EXPRESSION[]

appElements

appElements: EXPRESSION[]

appStmts

appStmts: Array<STATEMENT>

elementCount

elementCount: number

factory

factory: ViewFactory<EXPRESSION, STATEMENT>

projectableNodes

projectableNodes: EXPRESSION

protoView

protoView: CompileProtoView<EXPRESSION, EXPRESSION>

renderNodes

renderNodes: EXPRESSION[]

renderStmts

renderStmts: Array<STATEMENT>

renderer

renderer: EXPRESSION

rootNodesOrAppElements

rootNodesOrAppElements: EXPRESSION[]

rootSelector

rootSelector: EXPRESSION

targetStatements

targetStatements: STATEMENT[]

view

view: EXPRESSION

viewManager

viewManager: EXPRESSION

_addRenderNode

  • _addRenderNode(renderNode: EXPRESSION, appEl: EXPRESSION, ngContentIndex: number, parent: ParentElement<EXPRESSION>): void
  • Parameters

    • renderNode: EXPRESSION
    • appEl: EXPRESSION
    • ngContentIndex: number
    • parent: ParentElement<EXPRESSION>

    Returns void

_getParentRenderNode

  • _getParentRenderNode(ngContentIndex: number, parent: ParentElement<EXPRESSION>): EXPRESSION
  • Parameters

    Returns EXPRESSION

_visitText

  • _visitText(value: string, ngContentIndex: number, parent: ParentElement<EXPRESSION>): any
  • Parameters

    • value: string
    • ngContentIndex: number
    • parent: ParentElement<EXPRESSION>

    Returns any

visitAttr

  • visitAttr(ast: AttrAst, ctx: any): any

visitBoundText

  • Parameters

    Returns any

visitDirective

visitDirectiveProperty

visitElement

  • Parameters

    Returns any

visitElementProperty

visitEmbeddedTemplate

visitEvent

visitNgContent

  • Parameters

    Returns any

visitText

  • Parameters

    Returns any

visitVariable

ViewCompiler

ViewCompiler:

constructor

  • Returns ViewCompiler

compileComponentCodeGen

compileComponentRuntime

  • compileComponentRuntime(component: CompileDirectiveMetadata, template: TemplateAst[], styles: Array<string | any[]>, protoViews: CompileProtoView<AppProtoView, AppProtoElement>[], changeDetectorFactories: Function[], componentViewFactory: Function): Function
  • Parameters

    Returns Function

ViewFactory

ViewFactory:

appendProjectedNodes

  • appendProjectedNodes(renderer: EXPRESSION, parent: EXPRESSION, nodes: EXPRESSION, targetStatements: STATEMENT[]): any
  • Parameters

    • renderer: EXPRESSION
    • parent: EXPRESSION
    • nodes: EXPRESSION
    • targetStatements: STATEMENT[]

    Returns any

createAndSetComponentView

  • createAndSetComponentView(renderer: EXPRESSION, viewManager: EXPRESSION, view: EXPRESSION, appEl: EXPRESSION, component: CompileDirectiveMetadata, contentNodesByNgContentIndex: EXPRESSION[], targetStatements: STATEMENT[]): any
  • Parameters

    • renderer: EXPRESSION
    • viewManager: EXPRESSION
    • view: EXPRESSION
    • appEl: EXPRESSION
    • component: CompileDirectiveMetadata
    • contentNodesByNgContentIndex: EXPRESSION[]
    • targetStatements: STATEMENT[]

    Returns any

createAppElement

  • createAppElement(appProtoEl: EXPRESSION, view: EXPRESSION, renderNode: EXPRESSION, parentAppEl: EXPRESSION, embeddedViewFactory: EXPRESSION, targetStatements: STATEMENT[]): EXPRESSION
  • Parameters

    • appProtoEl: EXPRESSION
    • view: EXPRESSION
    • renderNode: EXPRESSION
    • parentAppEl: EXPRESSION
    • embeddedViewFactory: EXPRESSION
    • targetStatements: STATEMENT[]

    Returns EXPRESSION

createElement

  • createElement(renderer: EXPRESSION, parent: EXPRESSION, name: string, rootSelector: EXPRESSION, targetStatements: STATEMENT[]): EXPRESSION
  • Parameters

    • renderer: EXPRESSION
    • parent: EXPRESSION
    • name: string
    • rootSelector: EXPRESSION
    • targetStatements: STATEMENT[]

    Returns EXPRESSION

createElementEventListener

  • createElementEventListener(renderer: EXPRESSION, view: EXPRESSION, boundElementIndex: number, renderNode: EXPRESSION, eventAst: BoundEventAst, targetStatements: STATEMENT[]): EXPRESSION
  • Parameters

    • renderer: EXPRESSION
    • view: EXPRESSION
    • boundElementIndex: number
    • renderNode: EXPRESSION
    • eventAst: BoundEventAst
    • targetStatements: STATEMENT[]

    Returns EXPRESSION

createGlobalEventListener

  • createGlobalEventListener(renderer: EXPRESSION, view: EXPRESSION, boundElementIndex: number, eventAst: BoundEventAst, targetStatements: STATEMENT[]): EXPRESSION
  • Parameters

    • renderer: EXPRESSION
    • view: EXPRESSION
    • boundElementIndex: number
    • eventAst: BoundEventAst
    • targetStatements: STATEMENT[]

    Returns EXPRESSION

createTemplateAnchor

  • createTemplateAnchor(renderer: EXPRESSION, parent: EXPRESSION, targetStatements: STATEMENT[]): EXPRESSION
  • Parameters

    • renderer: EXPRESSION
    • parent: EXPRESSION
    • targetStatements: STATEMENT[]

    Returns EXPRESSION

createText

  • createText(renderer: EXPRESSION, parent: EXPRESSION, text: string, targetStatements: STATEMENT[]): EXPRESSION
  • Parameters

    • renderer: EXPRESSION
    • parent: EXPRESSION
    • text: string
    • targetStatements: STATEMENT[]

    Returns EXPRESSION

createViewFactory

  • createViewFactory(asts: TemplateAst[], embeddedTemplateIndex: number, targetStatements: STATEMENT[]): EXPRESSION
  • Parameters

    • asts: TemplateAst[]
    • embeddedTemplateIndex: number
    • targetStatements: STATEMENT[]

    Returns EXPRESSION

getProjectedNodes

  • getProjectedNodes(projectableNodes: EXPRESSION, ngContentIndex: number): EXPRESSION
  • Parameters

    • projectableNodes: EXPRESSION
    • ngContentIndex: number

    Returns EXPRESSION

setElementAttribute

  • setElementAttribute(renderer: EXPRESSION, renderNode: EXPRESSION, attrName: string, attrValue: string, targetStatements: STATEMENT[]): any
  • Parameters

    • renderer: EXPRESSION
    • renderNode: EXPRESSION
    • attrName: string
    • attrValue: string
    • targetStatements: STATEMENT[]

    Returns any

VIEW_JIT_IMPORTS

VIEW_JIT_IMPORTS: object

Type declaration

  • AppElement: AppElement
  • AppView: AppView
  • checkSlotCount: checkSlotCount
  • flattenNestedViewRenderNodes: flattenNestedViewRenderNodes

codeGenEventHandler

  • codeGenEventHandler(view: Expression, boundElementIndex: number, eventName: string): string
  • Parameters

    • view: Expression
    • boundElementIndex: number
    • eventName: string

    Returns string

codeGenViewEncapsulation

  • codeGenViewEncapsulation(value: ViewEncapsulation): string
  • Parameters

    • value: ViewEncapsulation

    Returns string

codeGenViewFactoryName

  • Parameters

    Returns string

"node_modules/angular2/ts/src/compiler/xhr"

"node_modules/angular2/ts/src/compiler/xhr":

XHR

XHR:

An interface for retrieving documents by URL that the compiler uses to load templates.

get

  • get(url: string): Promise<string>
  • Parameters

    • url: string

    Returns Promise<string>

"node_modules/angular2/ts/src/compiler/xhr_mock"

"node_modules/angular2/ts/src/compiler/xhr_mock":

MockXHR

MockXHR:

A mock implementation of XHR that allows outgoing requests to be mocked and responded to within a single test, without going to the network.

_definitions

_definitions: Map<string, string>

_expectations

_expectations: _Expectation[]

_requests

_requests: _PendingRequest[]

_processRequest

  • Parameters

    Returns void

expect

  • expect(url: string, response: string): void
  • Add an expectation for the given URL. Incoming requests will be checked against the next expectation (in FIFO order). The verifyNoOutstandingExpectations method can be used to check if any expectations have not yet been met.

    The response given will be returned if the expectation matches.

    Parameters

    • url: string
    • response: string

    Returns void

flush

  • flush(): void
  • Process pending requests and verify there are no outstanding expectations. Also fails if no requests are pending.

    Returns void

get

  • get(url: string): Promise<string>
  • Parameters

    • url: string

    Returns Promise<string>

verifyNoOutstandingExpectations

  • verifyNoOutstandingExpectations(): void
  • Throw an exception if any expectations have not been satisfied.

    Returns void

when

  • when(url: string, response: string): void
  • Add a definition for the given URL to return the given response. Unlike expectations, definitions have no order and will satisfy any matching request at any time. Also unlike expectations, unused definitions do not cause verifyNoOutstandingExpectations to return an error.

    Parameters

    • url: string
    • response: string

    Returns void

_Expectation

_Expectation:

constructor

  • new _Expectation(url: string, response: string): _Expectation
  • Parameters

    • url: string
    • response: string

    Returns _Expectation

response

response: string

url

url: string

_PendingRequest

_PendingRequest:

constructor

  • Parameters

    • url: any

    Returns _PendingRequest

completer

completer: PromiseCompleter<string>

url

url: string

complete

  • complete(response: string): void
  • Parameters

    • response: string

    Returns void

getPromise

  • getPromise(): Promise<string>
  • Returns Promise<string>

"node_modules/angular2/ts/src/core/angular_entrypoint"

"node_modules/angular2/ts/src/core/angular_entrypoint":

AngularEntrypoint

AngularEntrypoint:

Marks a function or method as an Angular 2 entrypoint. Only necessary in Dart code.

The optional name parameter will be reflected in logs when the entry point is processed.

See the wiki for detailed documentation.

Example

```

angularentrypoint

("name-for-debug") void main() { bootstrap(MyComponent); } ```

constructor

  • Parameters

    • Optional name: String

    Returns AngularEntrypoint

name

name: String

"node_modules/angular2/ts/src/core/application_common_providers"

"node_modules/angular2/ts/src/core/application_common_providers":

APPLICATION_COMMON_PROVIDERS

APPLICATION_COMMON_PROVIDERS: Array<Type | Provider | any[]>

A default set of providers which should be included in any Angular application, regardless of the platform it runs onto.

"node_modules/angular2/ts/src/core/application_ref"

"node_modules/angular2/ts/src/core/application_ref":

ApplicationRef

ApplicationRef:

A reference to an Angular application running on a page.

For more about Angular applications, see the documentation for bootstrap.

componentTypes

componentTypes:

Get a list of component types registered to this application.

injector

injector:

Retrieve the application Injector.

zone

zone:

Retrieve the application NgZone.

bootstrap

  • bootstrap(componentType: Type, providers?: Array<Type | Provider | any[]>): Promise<ComponentRef>
  • Bootstrap a new component at the root level of the application.

    Bootstrap process

    When bootstrapping a new root component into an application, Angular mounts the specified application component onto DOM elements identified by the [componentType]'s selector and kicks off automatic change detection to finish initializing the component.

    Optional Providers

    Providers for the given component can optionally be overridden via the providers parameter. These providers will only apply for the root component being added and any child components under it.

    Example

    {@example core/ts/platform/platform.ts region='longform'}

    Parameters

    • componentType: Type
    • Optional providers: Array<Type | Provider | any[]>

    Returns Promise<ComponentRef>

dispose

  • dispose(): void
  • Dispose of this application and all of its components.

    Returns void

registerBootstrapListener

  • registerBootstrapListener(listener: function): void
  • Register a listener to be called each time bootstrap() is called to bootstrap a new root component.

    Parameters

    • listener: function
        • (ref: ComponentRef): void
        • Parameters

          • ref: ComponentRef

          Returns void

    Returns void

registerDisposeListener

  • registerDisposeListener(dispose: function): void
  • Register a listener to be called when the application is disposed.

    Parameters

    • dispose: function
        • (): void
        • Returns void

    Returns void

tick

  • tick(): void
  • Invoke this method to explicitly process change detection and its side-effects.

    In development mode, tick() also performs a second change detection cycle to ensure that no further changes are detected. If additional changes are picked up during this second cycle, bindings in the app have side-effects that cannot be resolved in a single change detection pass. In this case, Angular throws an error, since an Angular application can only have one change detection pass during which all change detection must complete.

    Returns void

ApplicationRef_

ApplicationRef_:

constructor

  • Parameters

    Returns ApplicationRef_

_bootstrapListeners

_bootstrapListeners: Function[]
internal

_changeDetectorRefs

_changeDetectorRefs: ChangeDetectorRef[]
internal

_disposeListeners

_disposeListeners: Function[]
internal

_enforceNoNewChanges

_enforceNoNewChanges: boolean
internal

_injector

_injector: Injector

_platform

_platform: PlatformRef_

_rootComponentTypes

_rootComponentTypes: Type[]
internal

_rootComponents

_rootComponents: ComponentRef[]
internal

_runningTick

_runningTick: boolean
internal

_zone

_zone: NgZone

_tickScope

_tickScope: WtfScopeFn
internal

componentTypes

componentTypes:

injector

injector:

zone

zone:

_loadComponent

  • _loadComponent(componentRef: ComponentRef): void
  • internal

    Parameters

    • componentRef: ComponentRef

    Returns void

_unloadComponent

  • _unloadComponent(componentRef: ComponentRef): void
  • internal

    Parameters

    • componentRef: ComponentRef

    Returns void

bootstrap

  • bootstrap(componentType: Type, providers?: Array<Type | Provider | any[]>): Promise<ComponentRef>
  • Parameters

    • componentType: Type
    • Optional providers: Array<Type | Provider | any[]>

    Returns Promise<ComponentRef>

dispose

  • dispose(): void
  • Returns void

registerBootstrapListener

  • registerBootstrapListener(listener: function): void
  • Parameters

    • listener: function
        • (ref: ComponentRef): void
        • Parameters

          • ref: ComponentRef

          Returns void

    Returns void

registerChangeDetector

  • registerChangeDetector(changeDetector: ChangeDetectorRef): void
  • Parameters

    • changeDetector: ChangeDetectorRef

    Returns void

registerDisposeListener

  • registerDisposeListener(dispose: function): void

tick

  • tick(): void
  • Returns void

unregisterChangeDetector

  • unregisterChangeDetector(changeDetector: ChangeDetectorRef): void
  • Parameters

    • changeDetector: ChangeDetectorRef

    Returns void

PlatformRef

PlatformRef:

The Angular platform is the entry point for Angular on a web page. Each page has exactly one platform, and services (such as reflection) which are common to every Angular application running on the page are bound in its scope.

A page's platform is initialized implicitly when bootstrap() is called, or explicitly by calling platform().

injector

injector:

Retrieve the platform Injector, which is the parent injector for every Angular application on the page and provides singleton providers.

application

  • application(providers: Array<Type | Provider | any[]>): ApplicationRef
  • Instantiate a new Angular application on the page.

    What is an application?

    Each Angular application has its own zone, change detection, compiler, renderer, and other framework components. An application hosts one or more root components, which can be initialized via ApplicationRef.bootstrap().

    Application Providers

    Angular applications require numerous providers to be properly instantiated. When using application() to create a new app on the page, these providers must be provided. Fortunately, there are helper functions to configure typical providers, as shown in the example below.

    Example

    {@example core/ts/platform/platform.ts region='longform'}

    See Also

    See the bootstrap documentation for more details.

    Parameters

    • providers: Array<Type | Provider | any[]>

    Returns ApplicationRef

asyncApplication

  • asyncApplication(bindingFn: function, providers?: Array<Type | Provider | any[]>): Promise<ApplicationRef>
  • Instantiate a new Angular application on the page, using providers which are only available asynchronously. One such use case is to initialize an application running in a web worker.

    Usage

    bindingFn is a function that will be called in the new application's zone. It should return a Promise to a list of providers to be used for the new application. Once this promise resolves, the application will be constructed in the same manner as a normal application().

    Parameters

    • bindingFn: function
        • (zone: NgZone): Promise<Array<Type | Provider | any[]>>
        • Parameters

          • zone: NgZone

          Returns Promise<Array<Type | Provider | any[]>>

    • Optional providers: Array<Type | Provider | any[]>

    Returns Promise<ApplicationRef>

dispose

  • dispose(): void
  • Destroy the Angular platform and all Angular applications on the page.

    Returns void

registerDisposeListener

  • registerDisposeListener(dispose: function): void
  • Register a listener to be called when the platform is disposed.

    Parameters

    • dispose: function
        • (): void
        • Returns void

    Returns void

PlatformRef_

PlatformRef_:

constructor

  • new PlatformRef_(_injector: Injector, _dispose: function): PlatformRef_
  • Parameters

    • _injector: Injector
    • _dispose: function
        • (): void
        • Returns void

    Returns PlatformRef_

_applications

_applications: ApplicationRef[]
internal

_dispose

_dispose: function

Type declaration

    • (): void
    • Returns void

_disposeListeners

_disposeListeners: Function[]
internal

_injector

_injector: Injector

injector

injector:

_applicationDisposed

  • internal

    Parameters

    Returns void

_initApp

  • Parameters

    • zone: NgZone
    • providers: Array<Type | Provider | any[]>

    Returns Promise<ApplicationRef> | ApplicationRef

application

  • application(providers: Array<Type | Provider | any[]>): ApplicationRef
  • Parameters

    • providers: Array<Type | Provider | any[]>

    Returns ApplicationRef

asyncApplication

  • asyncApplication(bindingFn: function, additionalProviders?: Array<Type | Provider | any[]>): Promise<ApplicationRef>
  • Parameters

    • bindingFn: function
        • (zone: NgZone): Promise<Array<Type | Provider | any[]>>
        • Parameters

          • zone: NgZone

          Returns Promise<Array<Type | Provider | any[]>>

    • Optional additionalProviders: Array<Type | Provider | any[]>

    Returns Promise<ApplicationRef>

dispose

  • dispose(): void
  • Returns void

registerDisposeListener

  • registerDisposeListener(dispose: function): void
  • Parameters

    • dispose: function
        • (): void
        • Returns void

    Returns void

_platform

_platform: PlatformRef

_platformProviders

_platformProviders: any[]

_componentProviders

  • _componentProviders(appComponentType: Type): Array<Type | Provider | any[]>
  • Construct providers specific to an individual root component.

    Parameters

    • appComponentType: Type

    Returns Array<Type | Provider | any[]>

_createPlatform

  • _createPlatform(providers?: Array<Type | Provider | any[]>): PlatformRef
  • Parameters

    • Optional providers: Array<Type | Provider | any[]>

    Returns PlatformRef

_runAppInitializers

  • _runAppInitializers(injector: Injector): Promise<any>
  • Parameters

    • injector: Injector

    Returns Promise<any>

_runPlatformInitializers

  • _runPlatformInitializers(injector: Injector): void
  • Parameters

    • injector: Injector

    Returns void

createNgZone

  • createNgZone(): NgZone
  • Create an Angular zone.

    Returns NgZone

disposePlatform

  • disposePlatform(): void
  • Dispose the existing platform.

    Returns void

platform

  • platform(providers?: Array<Type | Provider | any[]>): PlatformRef
  • Initialize the Angular 'platform' on the page.

    See PlatformRef for details on the Angular platform.

    It is also possible to specify providers to be made in the new platform. These providers will be shared between all applications on the page. For example, an abstraction for the browser cookie jar should be bound at the platform level, because there is only one cookie jar regardless of how many applications on the page will be accessing it.

    The platform function can be called multiple times as long as the same list of providers is passed into each call. If the platform function is called with a different set of provides, Angular will throw an exception.

    Parameters

    • Optional providers: Array<Type | Provider | any[]>

    Returns PlatformRef

"node_modules/angular2/ts/src/core/application_tokens"

"node_modules/angular2/ts/src/core/application_tokens":

APP_COMPONENT

APP_COMPONENT: OpaqueToken

An {@link angular2/di/OpaqueToken} representing the application root type in the Injector.

```

component

(...) class MyApp { ... }

bootstrap(MyApp).then((appRef:ApplicationRef) { expect(appRef.injector.get(appComponentTypeToken)).toEqual(MyApp); });

```

APP_COMPONENT_REF_PROMISE

APP_COMPONENT_REF_PROMISE: OpaqueToken

@internal

APP_ID

APP_ID: OpaqueToken

A DI Token representing a unique string id assigned to the application by Angular and used primarily for prefixing application attributes and CSS styles when {@link ViewEncapsulation#Emulated} is being used.

If you need to avoid randomly generated value to be used as an application id, you can provide a custom value via a DI provider configuring the root Injector using this token.

APP_ID_RANDOM_PROVIDER

APP_ID_RANDOM_PROVIDER: Provider

Providers that will generate a random APP_ID_TOKEN.

APP_INITIALIZER

APP_INITIALIZER: OpaqueToken

A function that will be executed when an application is initialized.

PACKAGE_ROOT_URL

PACKAGE_ROOT_URL: OpaqueToken

A token which indicates the root directory of the application

PLATFORM_INITIALIZER

PLATFORM_INITIALIZER: OpaqueToken

A function that will be executed when a platform is initialized.

_appIdRandomProviderFactory

  • _appIdRandomProviderFactory(): string
  • Returns string

_randomChar

  • _randomChar(): string
  • Returns string

"node_modules/angular2/ts/src/core/change_detection"

"node_modules/angular2/ts/src/core/change_detection":

"node_modules/angular2/ts/src/core/change_detection/abstract_change_detector"

"node_modules/angular2/ts/src/core/change_detection/abstract_change_detector":

AbstractChangeDetector

AbstractChangeDetector:

constructor

bindingTargets

bindingTargets: BindingTarget[]

contentChildren

contentChildren: any[]

context

context: T

directiveIndices

directiveIndices: DirectiveIndex[]

dispatcher

dispatcher: ChangeDispatcher

id

id: string

locals

locals: Locals

mode

numberOfPropertyProtoRecords

numberOfPropertyProtoRecords: number

outputSubscriptions

outputSubscriptions: any[]

parent

pipes

pipes: Pipes

propertyBindingIndex

propertyBindingIndex: number

ref

state

strategy

viewChildren

viewChildren: any[]

_currentBinding

  • Returns BindingTarget

_detectChangesContentChildren

  • _detectChangesContentChildren(throwOnChange: boolean): void
  • internal

    Parameters

    • throwOnChange: boolean

    Returns void

_detectChangesInViewChildren

  • _detectChangesInViewChildren(throwOnChange: boolean): void
  • internal

    Parameters

    • throwOnChange: boolean

    Returns void

_throwError

  • _throwError(exception: any, stack: any): void
  • Parameters

    • exception: any
    • stack: any

    Returns void

_unsubscribeFromOutputs

  • _unsubscribeFromOutputs(): void
  • Returns void

addChange

  • addChange(changes: object, oldValue: any, newValue: any): object
  • Parameters

    • changes: object
      • [key: string]: any
    • oldValue: any
    • newValue: any

    Returns object

    • [key: string]: any

addContentChild

addViewChild

afterContentLifecycleCallbacks

  • afterContentLifecycleCallbacks(): void
  • Returns void

afterContentLifecycleCallbacksInternal

  • afterContentLifecycleCallbacksInternal(): void
  • Returns void

afterViewLifecycleCallbacks

  • afterViewLifecycleCallbacks(): void
  • Returns void

afterViewLifecycleCallbacksInternal

  • afterViewLifecycleCallbacksInternal(): void
  • Returns void

checkNoChanges

  • checkNoChanges(): void
  • Returns void

dehydrate

  • dehydrate(): void
  • Returns void

dehydrateDirectives

  • dehydrateDirectives(destroyPipes: boolean): void
  • Parameters

    • destroyPipes: boolean

    Returns void

destroyRecursive

  • destroyRecursive(): void
  • Returns void

detectChanges

  • detectChanges(): void
  • Returns void

detectChangesInRecords

  • detectChangesInRecords(throwOnChange: boolean): void
  • Parameters

    • throwOnChange: boolean

    Returns void

detectChangesInRecordsInternal

  • detectChangesInRecordsInternal(throwOnChange: boolean): void
  • Parameters

    • throwOnChange: boolean

    Returns void

getDetectorFor

  • Parameters

    • directives: any
    • index: number

    Returns ChangeDetector

getDirectiveFor

  • getDirectiveFor(directives: any, index: number): any
  • Parameters

    • directives: any
    • index: number

    Returns any

handleEvent

  • handleEvent(eventName: string, elIndex: number, event: any): boolean
  • Parameters

    • eventName: string
    • elIndex: number
    • event: any

    Returns boolean

handleEventInternal

  • handleEventInternal(eventName: string, elIndex: number, locals: Locals): boolean
  • Parameters

    • eventName: string
    • elIndex: number
    • locals: Locals

    Returns boolean

hydrate

  • Parameters

    Returns void

hydrateDirectives

  • Parameters

    Returns void

hydrated

  • hydrated(): boolean
  • Returns boolean

logBindingUpdate

  • logBindingUpdate(value: any): void
  • Parameters

    • value: any

    Returns void

markAsCheckOnce

  • markAsCheckOnce(): void
  • Returns void

markPathToRootAsCheckOnce

  • markPathToRootAsCheckOnce(): void

notifyDispatcher

  • notifyDispatcher(value: any): void
  • Parameters

    • value: any

    Returns void

remove

  • remove(): void
  • Returns void

removeContentChild

removeViewChild

runDetectChanges

  • runDetectChanges(throwOnChange: boolean): void
  • Parameters

    • throwOnChange: boolean

    Returns void

throwDehydratedError

  • throwDehydratedError(detail: string): void
  • Parameters

    • detail: string

    Returns void

throwOnChangeError

  • throwOnChangeError(oldValue: any, newValue: any): void
  • Parameters

    • oldValue: any
    • newValue: any

    Returns void

_Context

_Context:

constructor

  • new _Context(element: any, componentElement: any, context: any, locals: any, injector: any, expression: any): _Context
  • Parameters

    • element: any
    • componentElement: any
    • context: any
    • locals: any
    • injector: any
    • expression: any

    Returns _Context

componentElement

componentElement: any

context

context: any

element

element: any

expression

expression: any

injector

injector: any

locals

locals: any

_scope_check

_scope_check: WtfScopeFn

"node_modules/angular2/ts/src/core/change_detection/binding_record"

"node_modules/angular2/ts/src/core/change_detection/binding_record":

BindingRecord

BindingRecord:

constructor

ast

ast: AST

directiveRecord

directiveRecord: DirectiveRecord

implicitReceiver

implicitReceiver: any

lifecycleEvent

lifecycleEvent: string

mode

mode: string

setter

setter: SetterFn

target

callOnChanges

  • callOnChanges(): boolean
  • Returns boolean

isDefaultChangeDetection

  • isDefaultChangeDetection(): boolean
  • Returns boolean

isDirectiveLifecycle

  • isDirectiveLifecycle(): boolean
  • Returns boolean

createDirectiveDoCheck

  • Parameters

    Returns BindingRecord

createDirectiveOnChanges

  • Parameters

    Returns BindingRecord

createDirectiveOnInit

  • Parameters

    Returns BindingRecord

createForDirective

  • Parameters

    Returns BindingRecord

createForElementAttribute

  • createForElementAttribute(ast: AST, elementIndex: number, attributeName: string): BindingRecord
  • Parameters

    • ast: AST
    • elementIndex: number
    • attributeName: string

    Returns BindingRecord

createForElementClass

  • createForElementClass(ast: AST, elementIndex: number, className: string): BindingRecord
  • Parameters

    • ast: AST
    • elementIndex: number
    • className: string

    Returns BindingRecord

createForElementProperty

  • createForElementProperty(ast: AST, elementIndex: number, propertyName: string): BindingRecord
  • Parameters

    • ast: AST
    • elementIndex: number
    • propertyName: string

    Returns BindingRecord

createForElementStyle

  • createForElementStyle(ast: AST, elementIndex: number, styleName: string, unit: string): BindingRecord
  • Parameters

    • ast: AST
    • elementIndex: number
    • styleName: string
    • unit: string

    Returns BindingRecord

createForEvent

  • createForEvent(ast: AST, eventName: string, elementIndex: number): BindingRecord
  • Parameters

    • ast: AST
    • eventName: string
    • elementIndex: number

    Returns BindingRecord

createForHostAttribute

  • Parameters

    Returns BindingRecord

createForHostClass

  • Parameters

    Returns BindingRecord

createForHostEvent

  • Parameters

    Returns BindingRecord

createForHostProperty

  • Parameters

    Returns BindingRecord

createForHostStyle

  • Parameters

    Returns BindingRecord

createForTextNode

  • Parameters

    • ast: AST
    • elementIndex: number

    Returns BindingRecord

BindingTarget

BindingTarget:

constructor

  • new BindingTarget(mode: string, elementIndex: number, name: string, unit: string, debug: string): BindingTarget
  • Parameters

    • mode: string
    • elementIndex: number
    • name: string
    • unit: string
    • debug: string

    Returns BindingTarget

debug

debug: string

elementIndex

elementIndex: number

mode

mode: string

name

name: string

unit

unit: string

isDirective

  • isDirective(): boolean
  • Returns boolean

isElementAttribute

  • isElementAttribute(): boolean
  • Returns boolean

isElementClass

  • isElementClass(): boolean
  • Returns boolean

isElementProperty

  • isElementProperty(): boolean
  • Returns boolean

isElementStyle

  • isElementStyle(): boolean
  • Returns boolean

isTextNode

  • isTextNode(): boolean
  • Returns boolean

BINDING

BINDING: string

DIRECTIVE

DIRECTIVE: string

DIRECTIVE_LIFECYCLE

DIRECTIVE_LIFECYCLE: string

ELEMENT_ATTRIBUTE

ELEMENT_ATTRIBUTE: string

ELEMENT_CLASS

ELEMENT_CLASS: string

ELEMENT_PROPERTY

ELEMENT_PROPERTY: string

ELEMENT_STYLE

ELEMENT_STYLE: string

EVENT

EVENT: string

HOST_EVENT

HOST_EVENT: string

TEXT_NODE

TEXT_NODE: string

"node_modules/angular2/ts/src/core/change_detection/change_detection"

"node_modules/angular2/ts/src/core/change_detection/change_detection":

defaultIterableDiffers

defaultIterableDiffers: IterableDiffers

defaultKeyValueDiffers

defaultKeyValueDiffers: KeyValueDiffers

iterableDiff

iterableDiff: IterableDifferFactory[]

Structural diffing for Iterable types such as Arrays.

keyValDiff

keyValDiff: KeyValueDifferFactory[]

Structural diffing for Objects and Maps.

"node_modules/angular2/ts/src/core/change_detection/change_detection_jit_generator"

"node_modules/angular2/ts/src/core/change_detection/change_detection_jit_generator":

ChangeDetectorJITGenerator

ChangeDetectorJITGenerator:

constructor

  • Parameters

    • definition: ChangeDetectorDefinition
    • changeDetectionUtilVarName: string
    • abstractChangeDetectorVarName: string
    • changeDetectorStateVarName: string

    Returns ChangeDetectorJITGenerator

_endOfBlockIdxs

_endOfBlockIdxs: number[]

_logic

_names

abstractChangeDetectorVarName

abstractChangeDetectorVarName: string

changeDetectionStrategy

changeDetectionStrategy: ChangeDetectionStrategy

changeDetectionUtilVarName

changeDetectionUtilVarName: string

changeDetectorStateVarName

changeDetectorStateVarName: string

directiveRecords

directiveRecords: any[]

eventBindings

eventBindings: EventBinding[]

genConfig

id

id: string

propertyBindingTargets

propertyBindingTargets: BindingTarget[]

records

records: ProtoRecord[]

typeName

typeName: string

_genAddToChanges

  • internal

    Parameters

    Returns string

_genAllRecords

  • internal

    Parameters

    Returns string

_genChangeMarker

  • internal

    Parameters

    Returns string

_genConditionalSkip

  • _genConditionalSkip(r: ProtoRecord, condition: string): string
  • internal

    Parameters

    Returns string

_genDirectiveIndices

  • _genDirectiveIndices(): string
  • internal

    Returns string

_genDirectiveLifecycle

  • internal

    Parameters

    Returns string

_genEndOfSkipBlock

  • _genEndOfSkipBlock(protoIndex: number): string
  • internal

    Parameters

    • protoIndex: number

    Returns string

_genEventBinding

  • internal

    Parameters

    Returns string

_genEventBindingEval

  • internal

    Parameters

    Returns string

_genMarkPathToRootAsCheckOnce

  • _genMarkPathToRootAsCheckOnce(r: ProtoRecord): string
  • internal

    Parameters

    Returns string

_genNotifyOnPushDetectors

  • internal

    Parameters

    Returns string

_genOnChange

  • internal

    Parameters

    Returns string

_genOnCheck

  • internal

    Parameters

    Returns string

_genOnInit

  • internal

    Parameters

    Returns string

_genPipeCheck

  • internal

    Parameters

    Returns string

_genPropertyBindingTargets

  • _genPropertyBindingTargets(): string
  • internal

    Returns string

_genReferenceCheck

  • internal

    Parameters

    Returns string

_genThrowOnChangeCheck

  • _genThrowOnChangeCheck(oldValue: string, newValue: string): string
  • internal

    Parameters

    • oldValue: string
    • newValue: string

    Returns string

_genUnconditionalSkip

  • internal

    Parameters

    Returns string

_genUpdateDirectiveOrElement

  • internal

    Parameters

    Returns string

_genUpdatePreventDefault

  • internal

    Parameters

    Returns string

_maybeFirstInBinding

  • internal

    Parameters

    Returns string

_maybeGenAfterContentLifecycleCallbacks

  • _maybeGenAfterContentLifecycleCallbacks(): string
  • internal

    Returns string

_maybeGenAfterViewLifecycleCallbacks

  • _maybeGenAfterViewLifecycleCallbacks(): string
  • internal

    Returns string

_maybeGenDehydrateDirectives

  • _maybeGenDehydrateDirectives(): string
  • internal

    Returns string

_maybeGenHandleEventInternal

  • _maybeGenHandleEventInternal(): string
  • internal

    Returns string

_maybeGenHydrateDirectives

  • _maybeGenHydrateDirectives(): string
  • internal

    Returns string

_maybeGenLastInDirective

  • internal

    Parameters

    Returns string

generate

  • generate(): Function
  • Returns Function

generateSource

  • generateSource(): string
  • Returns string

CHANGES_LOCAL

CHANGES_LOCAL: string

IS_CHANGED_LOCAL

IS_CHANGED_LOCAL: string

The code generator takes a list of proto records and creates a function/class that "emulates" what the developer would write by hand to implement the same kind of behaviour.

This code should be kept in sync with the Dart transformer's angular2.transform.template_compiler.change_detector_codegen library. If you make updates here, please make equivalent changes there.

"node_modules/angular2/ts/src/core/change_detection/change_detection_util"

"node_modules/angular2/ts/src/core/change_detection/change_detection_util":

ChangeDetectionUtil

ChangeDetectionUtil:

uninitialized

uninitialized: Object

arrayFn0

  • arrayFn0(): any[]
  • Returns any[]

arrayFn1

  • arrayFn1(a1: any): any[]
  • Parameters

    • a1: any

    Returns any[]

arrayFn2

  • arrayFn2(a1: any, a2: any): any[]
  • Parameters

    • a1: any
    • a2: any

    Returns any[]

arrayFn3

  • arrayFn3(a1: any, a2: any, a3: any): any[]
  • Parameters

    • a1: any
    • a2: any
    • a3: any

    Returns any[]

arrayFn4

  • arrayFn4(a1: any, a2: any, a3: any, a4: any): any[]
  • Parameters

    • a1: any
    • a2: any
    • a3: any
    • a4: any

    Returns any[]

arrayFn5

  • arrayFn5(a1: any, a2: any, a3: any, a4: any, a5: any): any[]
  • Parameters

    • a1: any
    • a2: any
    • a3: any
    • a4: any
    • a5: any

    Returns any[]

arrayFn6

  • arrayFn6(a1: any, a2: any, a3: any, a4: any, a5: any, a6: any): any[]
  • Parameters

    • a1: any
    • a2: any
    • a3: any
    • a4: any
    • a5: any
    • a6: any

    Returns any[]

arrayFn7

  • arrayFn7(a1: any, a2: any, a3: any, a4: any, a5: any, a6: any, a7: any): any[]
  • Parameters

    • a1: any
    • a2: any
    • a3: any
    • a4: any
    • a5: any
    • a6: any
    • a7: any

    Returns any[]

arrayFn8

  • arrayFn8(a1: any, a2: any, a3: any, a4: any, a5: any, a6: any, a7: any, a8: any): any[]
  • Parameters

    • a1: any
    • a2: any
    • a3: any
    • a4: any
    • a5: any
    • a6: any
    • a7: any
    • a8: any

    Returns any[]

arrayFn9

  • arrayFn9(a1: any, a2: any, a3: any, a4: any, a5: any, a6: any, a7: any, a8: any, a9: any): any[]
  • Parameters

    • a1: any
    • a2: any
    • a3: any
    • a4: any
    • a5: any
    • a6: any
    • a7: any
    • a8: any
    • a9: any

    Returns any[]

bindingTarget

  • bindingTarget(mode: string, elementIndex: number, name: string, unit: string, debug: string): BindingTarget
  • Parameters

    • mode: string
    • elementIndex: number
    • name: string
    • unit: string
    • debug: string

    Returns BindingTarget

callPipeOnDestroy

  • Parameters

    Returns void

changeDetectionMode

cond

  • cond(cond: any, trueVal: any, falseVal: any): any
  • Parameters

    • cond: any
    • trueVal: any
    • falseVal: any

    Returns any

devModeEqual

  • devModeEqual(a: any, b: any): boolean
  • Parameters

    • a: any
    • b: any

    Returns boolean

directiveIndex

  • directiveIndex(elementIndex: number, directiveIndex: number): DirectiveIndex
  • Parameters

    • elementIndex: number
    • directiveIndex: number

    Returns DirectiveIndex

isValueBlank

  • isValueBlank(value: any): boolean
  • Parameters

    • value: any

    Returns boolean

keyedAccess

  • keyedAccess(obj: any, args: any): any
  • Parameters

    • obj: any
    • args: any

    Returns any

looseNotIdentical

  • looseNotIdentical(a: any, b: any): boolean
  • Parameters

    • a: any
    • b: any

    Returns boolean

mapFn

  • mapFn(keys: any[]): any
  • Parameters

    • keys: any[]

    Returns any

operation_add

  • operation_add(left: any, right: any): any
  • Parameters

    • left: any
    • right: any

    Returns any

operation_divide

  • operation_divide(left: any, right: any): any
  • Parameters

    • left: any
    • right: any

    Returns any

operation_equals

  • operation_equals(left: any, right: any): any
  • Parameters

    • left: any
    • right: any

    Returns any

operation_greater_or_equals_then

  • operation_greater_or_equals_then(left: any, right: any): any
  • Parameters

    • left: any
    • right: any

    Returns any

operation_greater_then

  • operation_greater_then(left: any, right: any): any
  • Parameters

    • left: any
    • right: any

    Returns any

operation_identical

  • operation_identical(left: any, right: any): any
  • Parameters

    • left: any
    • right: any

    Returns any

operation_less_or_equals_then

  • operation_less_or_equals_then(left: any, right: any): any
  • Parameters

    • left: any
    • right: any

    Returns any

operation_less_then

  • operation_less_then(left: any, right: any): any
  • Parameters

    • left: any
    • right: any

    Returns any

operation_multiply

  • operation_multiply(left: any, right: any): any
  • Parameters

    • left: any
    • right: any

    Returns any

operation_negate

  • operation_negate(value: any): any
  • Parameters

    • value: any

    Returns any

operation_not_equals

  • operation_not_equals(left: any, right: any): any
  • Parameters

    • left: any
    • right: any

    Returns any

operation_not_identical

  • operation_not_identical(left: any, right: any): any
  • Parameters

    • left: any
    • right: any

    Returns any

operation_remainder

  • operation_remainder(left: any, right: any): any
  • Parameters

    • left: any
    • right: any

    Returns any

operation_subtract

  • operation_subtract(left: any, right: any): any
  • Parameters

    • left: any
    • right: any

    Returns any

protoByIndex

  • Parameters

    Returns ProtoRecord

s

  • s(value: any): string
  • Parameters

    • value: any

    Returns string

simpleChange

  • simpleChange(previousValue: any, currentValue: any): SimpleChange
  • Parameters

    • previousValue: any
    • currentValue: any

    Returns SimpleChange

unwrapValue

  • unwrapValue(value: any): any
  • Parameters

    • value: any

    Returns any

SimpleChange

SimpleChange:

Represents a basic change from a previous to a new value.

constructor

  • new SimpleChange(previousValue: any, currentValue: any): SimpleChange
  • Parameters

    • previousValue: any
    • currentValue: any

    Returns SimpleChange

currentValue

currentValue: any

previousValue

previousValue: any

isFirstChange

  • isFirstChange(): boolean
  • Check whether the new value is the first value assigned.

    Returns boolean

WrappedValue

WrappedValue:

Indicates that the result of a PipeMetadata transformation has changed even though the reference has not changed.

The wrapped value will be unwrapped by change detection, and the unwrapped value will be stored.

Example:

if (this._latestValue === this._latestReturnedValue) {
   return this._latestReturnedValue;
 } else {
   this._latestReturnedValue = this._latestValue;
   return WrappedValue.wrap(this._latestValue); // this will force update
 }

constructor

  • Parameters

    • wrapped: any

    Returns WrappedValue

wrapped

wrapped: any

wrap

  • Parameters

    • value: any

    Returns WrappedValue

_wrappedIndex

_wrappedIndex: number

_wrappedValues

_wrappedValues: Array<WrappedValue>

_simpleChange

  • _simpleChange(previousValue: any, currentValue: any): SimpleChange
  • Parameters

    • previousValue: any
    • currentValue: any

    Returns SimpleChange

"node_modules/angular2/ts/src/core/change_detection/change_detector_ref"

"node_modules/angular2/ts/src/core/change_detection/change_detector_ref":

ChangeDetectorRef

ChangeDetectorRef:

checkNoChanges

  • checkNoChanges(): void
  • Checks the change detector and its children, and throws if any changes are detected.

    This is used in development mode to verify that running change detection doesn't introduce other changes.

    Returns void

detach

  • detach(): void
  • Detaches the change detector from the change detector tree.

    The detached change detector will not be checked until it is reattached.

    This can also be used in combination with {@link ChangeDetectorRef#detectChanges} to implement local change detection checks.

    Example

    The following example defines a component with a large list of readonly data. Imagine the data changes constantly, many times per second. For performance reasons, we want to check and update the list every five seconds. We can do that by detaching the component's change detector and doing a local check every five seconds.

    ```typescript class DataProvider { // in a real application the returned data will be different every time get data() { return [1,2,3,4,5]; } }

    component

    ({ selector: 'giant-list', template: <li *ngFor="#d of dataProvider.data">Data {{d}}</lig>, directives: [NgFor] }) class GiantList { constructor(private ref: ChangeDetectorRef, private dataProvider:DataProvider) { ref.detach(); setInterval(() => { this.ref.detectChanges(); }, 5000); } }

    component

    ({ selector: 'app', providers: [DataProvider], template: <giant-list><giant-list>, directives: [GiantList] }) class App { }

    bootstrap(App); ```

    Returns void

detectChanges

  • detectChanges(): void
  • Checks the change detector and its children.

    This can also be used in combination with {@link ChangeDetectorRef#detach} to implement local change detection checks.

    Example

    The following example defines a component with a large list of readonly data. Imagine, the data changes constantly, many times per second. For performance reasons, we want to check and update the list every five seconds.

    We can do that by detaching the component's change detector and doing a local change detection check every five seconds.

    See {@link ChangeDetectorRef#detach} for more information.

    Returns void

markForCheck

  • markForCheck(): void
  • Marks all {@link ChangeDetectionStrategy#OnPush} ancestors as to be checked.

    Example (live demo)

    ```typescript

    component

    ({ selector: 'cmp', changeDetection: ChangeDetectionStrategy.OnPush, template: Number of ticks: {{numberOfTicks}} }) class Cmp { numberOfTicks = 0;

    constructor(ref: ChangeDetectorRef) { setInterval(() => { this.numberOfTicks ++ // the following is required, otherwise the view will not be updated this.ref.markForCheck(); }, 1000); } }

    component

    ({ selector: 'app', changeDetection: ChangeDetectionStrategy.OnPush, template: <cmp><cmp>, directives: [Cmp] }) class App { }

    bootstrap(App); ```

    Returns void

reattach

  • reattach(): void
  • Reattach the change detector to the change detector tree.

    This also marks OnPush ancestors as to be checked. This reattached change detector will be checked during the next change detection run.

    Example (live demo)

    The following example creates a component displaying live data. The component will detach its change detector from the main change detector tree when the component's live property is set to false.

    ```typescript class DataProvider { data = 1;

    constructor() { setInterval(() => { this.data = this.data * 2; }, 500); } }

    component

    ({ selector: 'live-data', inputs: ['live'], template: Data: {{dataProvider.data}} }) class LiveData { constructor(private ref: ChangeDetectorRef, private dataProvider:DataProvider) {}

    set live(value) { if (value) this.ref.reattach(); else this.ref.detach(); } }

    component

    ({ selector: 'app', providers: [DataProvider], template: Live Update: <input type="checkbox" [(ngModel)]="live"> <live-data [live]="live"><live-data>, directives: [LiveData, FORM_DIRECTIVES] }) class App { live = true; }

    bootstrap(App); ```

    Returns void

ChangeDetectorRef_

ChangeDetectorRef_:

constructor

_cd

checkNoChanges

  • checkNoChanges(): void

detach

  • detach(): void
  • Returns void

detectChanges

  • detectChanges(): void

markForCheck

  • markForCheck(): void
  • Returns void

reattach

  • reattach(): void
  • Returns void

"node_modules/angular2/ts/src/core/change_detection/coalesce"

"node_modules/angular2/ts/src/core/change_detection/coalesce":

_cloneAndUpdateIndexes

  • Clone the ProtoRecord and changes the indexes for the ones in the destination array for:

    • the arguments,
    • the context,
    • self

    Parameters

    Returns ProtoRecord

_createSelfRecord

  • Parameters

    • r: ProtoRecord
    • contextIndex: number
    • selfIndex: number

    Returns ProtoRecord

_findFirstMatch

  • Returns the first ProtoRecord that matches the record.

    Parameters

    Returns ProtoRecord

_haveSameDirIndex

  • Parameters

    Returns boolean

_mayBeAddRecord

  • Add a new record or re-use one of the existing records.

    Parameters

    Returns ProtoRecord

_optimizeSkips

    • Conditional skip of 1 record followed by an unconditional skip of N are replaced by a conditional skip of N with the negated condition,
    • Skips of 0 records are removed

    Parameters

    Returns ProtoRecord[]

_srcToDstSelfIndex

  • _srcToDstSelfIndex(indexMap: Map<number, number>, srcIdx: number): number
  • Returns the index in the destination array corresponding to the index in the src array. When the element is not present in the destination array, return the source index.

    Parameters

    • indexMap: Map<number, number>
    • srcIdx: number

    Returns number

coalesce

  • Removes "duplicate" records. It assumes that record evaluation does not have side-effects.

    Records that are not last in bindings are removed and all the indices of the records that depend on them are updated.

    Records that are last in bindings CANNOT be removed, and instead are replaced with very cheap SELF records.

    internal

    Parameters

    Returns ProtoRecord[]

"node_modules/angular2/ts/src/core/change_detection/codegen_facade"

"node_modules/angular2/ts/src/core/change_detection/codegen_facade":

codify

  • codify(obj: any): string
  • Converts funcOrValue to a string which can be used in generated code.

    Parameters

    • obj: any

    Returns string

combineGeneratedStrings

  • combineGeneratedStrings(vals: string[]): string
  • Combine the strings of generated code into a single interpolated string. Each element of vals is expected to be a string literal or a codegen'd call to a method returning a string.

    Parameters

    • vals: string[]

    Returns string

rawString

  • rawString(str: string): string
  • Parameters

    • str: string

    Returns string

"node_modules/angular2/ts/src/core/change_detection/codegen_logic_util"

"node_modules/angular2/ts/src/core/change_detection/codegen_logic_util":

CodegenLogicUtil

CodegenLogicUtil:

Class responsible for providing change detection logic for change detector classes.

constructor

  • Parameters

    • _names: CodegenNameUtil
    • _utilName: string
    • _changeDetectorStateName: string

    Returns CodegenLogicUtil

_changeDetectorStateName

_changeDetectorStateName: string

_names

_utilName

_utilName: string

_genEvalValue

  • _genEvalValue(protoRec: ProtoRecord, getLocalName: Function, localsAccessor: string): string
  • Parameters

    • protoRec: ProtoRecord
    • getLocalName: Function
    • localsAccessor: string

    Returns string

_genEventHandler

  • _genEventHandler(boundElementIndex: number, eventName: string): string
  • Parameters

    • boundElementIndex: number
    • eventName: string

    Returns string

_genInterpolation

  • internal

    Parameters

    Returns string

_genReadDirective

  • _genReadDirective(index: number): string
  • Parameters

    • index: number

    Returns string

genContentLifecycleCallbacks

  • genContentLifecycleCallbacks(directiveRecords: DirectiveRecord[]): string[]
  • Parameters

    Returns string[]

genDirectiveIndices

  • Parameters

    Returns string

genDirectivesOnDestroy

  • Parameters

    Returns string

genEventBindingEvalValue

  • genEventBindingEvalValue(eventRecord: any, protoRec: ProtoRecord): string
  • Generates a statement which updates the local variable representing protoRec with the current value of the record. Used by event bindings.

    Parameters

    Returns string

genHydrateDetectors

  • Parameters

    Returns string

genHydrateDirectives

  • Parameters

    Returns string

genPropertyBindingEvalValue

  • genPropertyBindingEvalValue(protoRec: ProtoRecord): string
  • Generates a statement which updates the local variable representing protoRec with the current value of the record. Used by property bindings.

    Parameters

    Returns string

genPropertyBindingTargets

  • genPropertyBindingTargets(propertyBindingTargets: BindingTarget[], genDebugInfo: boolean): string
  • Parameters

    Returns string

genViewLifecycleCallbacks

  • Parameters

    Returns string[]

"node_modules/angular2/ts/src/core/change_detection/codegen_name_util"

"node_modules/angular2/ts/src/core/change_detection/codegen_name_util":

CodegenNameUtil

CodegenNameUtil:

Class responsible for providing field and local variable names for change detector classes. Also provides some convenience functions, for example, declaring variables, destroying pipes, and dehydrating the detector.

constructor

  • Parameters

    Returns CodegenNameUtil

_directiveRecords

_directiveRecords: any[]

_eventBindings

_eventBindings: EventBinding[]

_records

_records: ProtoRecord[]

_sanitizedEventNames

_sanitizedEventNames: Map<EventBinding, Array<string>>
internal

_sanitizedNames

_sanitizedNames: string[]

Record names sanitized for use as fields. See [sanitizeName] for details.

internal

_utilName

_utilName: string

_addFieldPrefix

  • _addFieldPrefix(name: string): string
  • internal

    Parameters

    • name: string

    Returns string

genDehydrateFields

  • genDehydrateFields(): string
  • Generates statements which clear all fields so that the change detector is dehydrated.

    Returns string

genInitEventLocals

  • genInitEventLocals(): string
  • Generate a statement initializing local variables for event handlers.

    Returns string

genInitLocals

  • genInitLocals(): string
  • Generate a statement initializing local variables used when detecting changes.

    Returns string

genPipeOnDestroy

  • genPipeOnDestroy(): string
  • Generates statements destroying all pipe variables.

    Returns string

getAllFieldNames

  • getAllFieldNames(): string[]
  • Returns string[]

getChangeName

  • getChangeName(idx: number): string
  • Parameters

    • idx: number

    Returns string

getDetectorName

  • Parameters

    Returns string

getDirectiveName

  • Parameters

    Returns string

getDirectivesAccessorName

  • getDirectivesAccessorName(): string
  • Returns string

getDispatcherName

  • getDispatcherName(): string
  • Returns string

getEventLocalName

  • Parameters

    Returns string

getFieldCount

  • getFieldCount(): number
  • Returns number

getFieldName

  • getFieldName(idx: number): string
  • Parameters

    • idx: number

    Returns string

getLocalName

  • getLocalName(idx: number): string
  • Parameters

    • idx: number

    Returns string

getLocalsAccessorName

  • getLocalsAccessorName(): string
  • Returns string

getModeName

  • getModeName(): string
  • Returns string

getPipeName

  • getPipeName(idx: number): string
  • Parameters

    • idx: number

    Returns string

getPipesAccessorName

  • getPipesAccessorName(): string
  • Returns string

getPreventDefaultAccesor

  • getPreventDefaultAccesor(): string
  • Returns string

getPropertyBindingIndex

  • getPropertyBindingIndex(): string
  • Returns string

getProtosName

  • getProtosName(): string
  • Returns string

getStateName

  • getStateName(): string
  • Returns string

CONTEXT_ACCESSOR

CONTEXT_ACCESSOR: string

CONTEXT_INDEX

CONTEXT_INDEX: number

_CONTEXT_ACCESSOR

_CONTEXT_ACCESSOR: string

_DIRECTIVES_ACCESSOR

_DIRECTIVES_ACCESSOR: string

_DISPATCHER_ACCESSOR

_DISPATCHER_ACCESSOR: string

_FIELD_PREFIX

_FIELD_PREFIX: string

_LOCALS_ACCESSOR

_LOCALS_ACCESSOR: string

_MODE_ACCESSOR

_MODE_ACCESSOR: string

_PIPES_ACCESSOR

_PIPES_ACCESSOR: string

_PROP_BINDING_INDEX

_PROP_BINDING_INDEX: string

_PROTOS_ACCESSOR

_PROTOS_ACCESSOR: string

_STATE_ACCESSOR

_STATE_ACCESSOR: string

_whiteSpaceRegExp

_whiteSpaceRegExp: RegExp

sanitizeName

  • sanitizeName(s: string): string
  • Returns s with all non-identifier characters removed.

    Parameters

    • s: string

    Returns string

"node_modules/angular2/ts/src/core/change_detection/constants"

"node_modules/angular2/ts/src/core/change_detection/constants":

ChangeDetectionStrategy

ChangeDetectionStrategy:

Describes within the change detector which strategy will be used the next time change detection is triggered.

CheckAlways

CheckAlways:

CheckAlways means that after calling detectChanges the mode of the change detector will remain CheckAlways.

CheckOnce

CheckOnce:

CheckedOnce means that after calling detectChanges the mode of the change detector will become Checked.

Checked

Checked:

Checked means that the change detector should be skipped until its mode changes to CheckOnce.

Default

Default:

Default means that the change detector's mode will be set to CheckAlways during hydration.

Detached

Detached:

Detached means that the change detector sub tree is not a part of the main tree and should be skipped.

OnPush

OnPush:

OnPush means that the change detector's mode will be set to CheckOnce during hydration.

ChangeDetectorState

ChangeDetectorState:

Describes the current state of the change detector.

CheckedBefore

CheckedBefore:

CheckedBefore means that the change detector has successfully completed at least one detection previously.

Errored

Errored:

Errored means that the change detector encountered an error checking a binding or calling a directive lifecycle method and is now in an inconsistent state. Change detectors in this state will no longer detect changes.

NeverChecked

NeverChecked:

NeverChecked means that the change detector has not been checked yet, and initialization methods should be called during detection.

CHANGE_DETECTION_STRATEGY_VALUES

CHANGE_DETECTION_STRATEGY_VALUES: Array<ChangeDetectionStrategy>

List of possible ChangeDetectionStrategy values.

CHANGE_DETECTOR_STATE_VALUES

CHANGE_DETECTOR_STATE_VALUES: Array<ChangeDetectorState>

List of possible ChangeDetectorState values.

isDefaultChangeDetectionStrategy

  • Parameters

    Returns boolean

"node_modules/angular2/ts/src/core/change_detection/differs/default_iterable_differ"

"node_modules/angular2/ts/src/core/change_detection/differs/default_iterable_differ":

CollectionChangeRecord

CollectionChangeRecord:

constructor

  • Parameters

    • item: any
    • trackById: any

    Returns CollectionChangeRecord

_next

internal

_nextAdded

internal

_nextDup

internal

_nextIdentityChange

_nextIdentityChange: CollectionChangeRecord
internal

_nextMoved

internal

_nextPrevious

_nextPrevious: CollectionChangeRecord
internal

_nextRemoved

internal

_prev

internal

_prevDup

internal

_prevRemoved

internal

currentIndex

currentIndex: number

item

item: any

previousIndex

previousIndex: number

trackById

trackById: any

toString

  • toString(): string
  • Returns string

DefaultIterableDiffer

DefaultIterableDiffer:

constructor

  • Parameters

    Returns DefaultIterableDiffer

_additionsHead

_additionsHead: CollectionChangeRecord

_additionsTail

_additionsTail: CollectionChangeRecord

_collection

_collection: any

_identityChangesHead

_identityChangesHead: CollectionChangeRecord

_identityChangesTail

_identityChangesTail: CollectionChangeRecord

_itHead

_itTail

_length

_length: number

_linkedRecords

_linkedRecords: _DuplicateMap

_movesHead

_movesTail

_previousItHead

_previousItHead: CollectionChangeRecord

_removalsHead

_removalsHead: CollectionChangeRecord

_removalsTail

_removalsTail: CollectionChangeRecord

_trackByFn

_trackByFn: TrackByFn

_unlinkedRecords

_unlinkedRecords: _DuplicateMap

collection

collection:

isDirty

isDirty:

length

length:

_addAfter

_addIdentityChange

_addToMoves

_addToRemovals

_insertAfter

_mismatch

  • This is the core function which handles differences between collections.

    • record is the record which we saw at this position last time. If null then it is a new item.
    • item is the current item in the collection
    • index is the position of the item in the collection
    internal

    Parameters

    Returns CollectionChangeRecord

_moveAfter

_reinsertAfter

_remove

_reset

  • _reset(): void
  • Reset the state of the change objects to show no changes. This means set previousKey to currentKey, and clear all of the queues (additions, moves, removals). Set the previousIndexes of moved and added items to their currentIndexes Reset the list of additions, moves and removals

    internal

    Returns void

_truncate

_unlink

_verifyReinsertion

  • This check is only needed if an array contains duplicates. (Short circuit of nothing dirty)

    Use case: [a, a] => [b, a, a]

    If we did not have this check then the insertion of b would: 1) evict first a 2) insert b at 0 index. 3) leave a at index 1 as is. <-- this is wrong! 3) reinsert a at index 2. <-- this is wrong!

    The correct behavior is: 1) evict first a 2) insert b at 0 index. 3) reinsert a at index 1. 3) move a at from 1 to 2.

    Double check that we have not evicted a duplicate item. We need to check if the item type may have already been removed: The insertion of b will evict the first 'a'. If we don't reinsert it now it will be reinserted at the end. Which will show up as the two 'a's switching position. This is incorrect, since a better way to think of it is as insert of 'b' rather then switch 'a' with 'b' and then add 'a' at the end.

    internal

    Parameters

    Returns CollectionChangeRecord

check

  • check(collection: any): boolean
  • Parameters

    • collection: any

    Returns boolean

diff

  • Parameters

    • collection: any

    Returns DefaultIterableDiffer

forEachAddedItem

  • forEachAddedItem(fn: Function): void
  • Parameters

    • fn: Function

    Returns void

forEachIdentityChange

  • forEachIdentityChange(fn: Function): void
  • Parameters

    • fn: Function

    Returns void

forEachItem

  • forEachItem(fn: Function): void
  • Parameters

    • fn: Function

    Returns void

forEachMovedItem

  • forEachMovedItem(fn: Function): void
  • Parameters

    • fn: Function

    Returns void

forEachPreviousItem

  • forEachPreviousItem(fn: Function): void
  • Parameters

    • fn: Function

    Returns void

forEachRemovedItem

  • forEachRemovedItem(fn: Function): void
  • Parameters

    • fn: Function

    Returns void

onDestroy

  • onDestroy(): void
  • Returns void

toString

  • toString(): string
  • Returns string

DefaultIterableDifferFactory

DefaultIterableDifferFactory:

create

supports

  • supports(obj: Object): boolean
  • Parameters

    • obj: Object

    Returns boolean

_DuplicateItemRecordList

_DuplicateItemRecordList:

_head

internal

_tail

internal

add

  • Append the record to the list of duplicates.

    Note: by design all records in the list of duplicates hold the same value in record.item.

    Parameters

    Returns void

get

  • Parameters

    • trackById: any
    • afterIndex: number

    Returns CollectionChangeRecord

remove

  • Remove one CollectionChangeRecord from the list of duplicates.

    Returns whether the list of duplicates is empty.

    Parameters

    Returns boolean

_DuplicateMap

_DuplicateMap:

map

isEmpty

isEmpty:

clear

  • clear(): void
  • Returns void

get

  • Retrieve the value using key. Because the CollectionChangeRecord value may be one which we have already iterated over, we use the afterIndex to pretend it is not there.

    Use case: [a, b, c, a, a] if we are at index 3 which is the second a then asking if we have any more as needs to return the last a not the first or second.

    Parameters

    • trackById: any
    • Default value afterIndex: number = null

    Returns CollectionChangeRecord

put

  • Parameters

    Returns void

remove

toString

  • toString(): string
  • Returns string

trackByIdentity

  • trackByIdentity(index: number, item: any): any
  • Parameters

    • index: number
    • item: any

    Returns any

"node_modules/angular2/ts/src/core/change_detection/differs/default_keyvalue_differ"

"node_modules/angular2/ts/src/core/change_detection/differs/default_keyvalue_differ":

DefaultKeyValueDiffer

DefaultKeyValueDiffer:

_additionsHead

_additionsHead: KeyValueChangeRecord

_additionsTail

_additionsTail: KeyValueChangeRecord

_changesHead

_changesHead: KeyValueChangeRecord

_changesTail

_changesTail: KeyValueChangeRecord

_mapHead

_previousMapHead

_previousMapHead: KeyValueChangeRecord

_records

_records: Map<any, any>

_removalsHead

_removalsHead: KeyValueChangeRecord

_removalsTail

_removalsTail: KeyValueChangeRecord

isDirty

isDirty:

_addToAdditions

  • internal

    Parameters

    Returns void

_addToChanges

  • internal

    Parameters

    Returns void

_addToRemovals

  • internal

    Parameters

    Returns void

_forEach

  • _forEach(obj: any, fn: Function): void
  • internal

    Parameters

    • obj: any
    • fn: Function

    Returns void

_isInRemovals

  • internal

    Parameters

    Returns boolean

_removeFromRemovals

  • internal

    Parameters

    Returns void

_removeFromSeq

_reset

  • _reset(): void
  • internal

    Returns void

_truncate

check

  • check(map: Map<any, any>): boolean
  • Parameters

    • map: Map<any, any>

    Returns boolean

diff

  • diff(map: Map<any, any>): any
  • Parameters

    • map: Map<any, any>

    Returns any

forEachAddedItem

  • forEachAddedItem(fn: Function): void
  • Parameters

    • fn: Function

    Returns void

forEachChangedItem

  • forEachChangedItem(fn: Function): void
  • Parameters

    • fn: Function

    Returns void

forEachItem

  • forEachItem(fn: Function): void
  • Parameters

    • fn: Function

    Returns void

forEachPreviousItem

  • forEachPreviousItem(fn: Function): void
  • Parameters

    • fn: Function

    Returns void

forEachRemovedItem

  • forEachRemovedItem(fn: Function): void
  • Parameters

    • fn: Function

    Returns void

onDestroy

  • onDestroy(): void
  • Returns void

toString

  • toString(): string
  • Returns string

DefaultKeyValueDifferFactory

DefaultKeyValueDifferFactory:

create

supports

  • supports(obj: any): boolean
  • Parameters

    • obj: any

    Returns boolean

KeyValueChangeRecord

KeyValueChangeRecord:

constructor

  • Parameters

    • key: any

    Returns KeyValueChangeRecord

_next

internal

_nextAdded

internal

_nextChanged

_nextChanged: KeyValueChangeRecord
internal

_nextPrevious

_nextPrevious: KeyValueChangeRecord
internal

_nextRemoved

_nextRemoved: KeyValueChangeRecord
internal

_prevRemoved

_prevRemoved: KeyValueChangeRecord
internal

currentValue

currentValue: any

key

key: any

previousValue

previousValue: any

toString

  • toString(): string
  • Returns string

"node_modules/angular2/ts/src/core/change_detection/differs/iterable_differs"

"node_modules/angular2/ts/src/core/change_detection/differs/iterable_differs":

IterableDiffers

IterableDiffers:

A repository of different iterable diffing strategies used by NgFor, NgClass, and others.

constructor

factories

find

  • Parameters

    • iterable: any

    Returns IterableDifferFactory

create

extend

  • Takes an array of IterableDifferFactory and returns a provider used to extend the inherited IterableDiffers instance with the provided factories and return a new IterableDiffers instance.

    The following example shows how to extend an existing list of factories, which will only be applied to the injector for this component and its children. This step is all that's required to make a new IterableDiffer available.

    Example

    ```

    component

    ({ viewProviders: [ IterableDiffers.extend([new ImmutableListDiffer()]) ] }) ```

    Parameters

    Returns Provider

IterableDiffer

IterableDiffer:

A strategy for tracking changes over time to an iterable. Used for NgFor to respond to changes in an iterable by effecting equivalent changes in the DOM.

diff

  • diff(object: any): any
  • Parameters

    • object: any

    Returns any

onDestroy

  • onDestroy(): any
  • Returns any

IterableDifferFactory

IterableDifferFactory:

Provides a factory for IterableDiffer.

create

supports

  • supports(objects: any): boolean
  • Parameters

    • objects: any

    Returns boolean

TrackByFn

  • __call(index: number, item: any): any
  • An optional function passed into NgFor that defines how to track items in an iterable (e.g. by index or id)

    Parameters

    • index: number
    • item: any

    Returns any

"node_modules/angular2/ts/src/core/change_detection/differs/keyvalue_differs"

"node_modules/angular2/ts/src/core/change_detection/differs/keyvalue_differs":

KeyValueDiffers

KeyValueDiffers:

A repository of different Map diffing strategies used by NgClass, NgStyle, and others.

constructor

factories

find

  • Parameters

    • kv: Object

    Returns KeyValueDifferFactory

create

extend

  • Takes an array of KeyValueDifferFactory and returns a provider used to extend the inherited KeyValueDiffers instance with the provided factories and return a new KeyValueDiffers instance.

    The following example shows how to extend an existing list of factories, which will only be applied to the injector for this component and its children. This step is all that's required to make a new KeyValueDiffer available.

    Example

    ```

    component

    ({ viewProviders: [ KeyValueDiffers.extend([new ImmutableMapDiffer()]) ] }) ```

    Parameters

    Returns Provider

KeyValueDiffer

KeyValueDiffer:

A differ that tracks changes made to an object over time.

diff

  • diff(object: any): any
  • Parameters

    • object: any

    Returns any

onDestroy

  • onDestroy(): any
  • Returns any

KeyValueDifferFactory

KeyValueDifferFactory:

Provides a factory for KeyValueDiffer.

create

supports

  • supports(objects: any): boolean
  • Parameters

    • objects: any

    Returns boolean

"node_modules/angular2/ts/src/core/change_detection/directive_record"

"node_modules/angular2/ts/src/core/change_detection/directive_record":

DirectiveIndex

DirectiveIndex:

constructor

  • new DirectiveIndex(elementIndex: number, directiveIndex: number): DirectiveIndex
  • Parameters

    • elementIndex: number
    • directiveIndex: number

    Returns DirectiveIndex

directiveIndex

directiveIndex: number

elementIndex

elementIndex: number

name

name:

DirectiveRecord

DirectiveRecord:

constructor

  • Parameters

    • Default value __namedParameters: object = {}
      • callAfterContentChecked: boolean
      • callAfterContentInit: boolean
      • callAfterViewChecked: boolean
      • callAfterViewInit: boolean
      • callDoCheck: boolean
      • callOnChanges: boolean
      • callOnDestroy: boolean
      • callOnInit: boolean
      • changeDetection: ChangeDetectionStrategy
      • directiveIndex: DirectiveIndex
      • outputs: Array<Array<string>>

    Returns DirectiveRecord

callAfterContentChecked

callAfterContentChecked: boolean

callAfterContentInit

callAfterContentInit: boolean

callAfterViewChecked

callAfterViewChecked: boolean

callAfterViewInit

callAfterViewInit: boolean

callDoCheck

callDoCheck: boolean

callOnChanges

callOnChanges: boolean

callOnDestroy

callOnDestroy: boolean

callOnInit

callOnInit: boolean

changeDetection

changeDetection: ChangeDetectionStrategy

directiveIndex

directiveIndex: DirectiveIndex

outputs

outputs: string[]

isDefaultChangeDetection

  • isDefaultChangeDetection(): boolean
  • Returns boolean

"node_modules/angular2/ts/src/core/change_detection/dynamic_change_detector"

"node_modules/angular2/ts/src/core/change_detection/dynamic_change_detector":

DynamicChangeDetector

DynamicChangeDetector:

constructor

_directiveRecords

_directiveRecords: DirectiveRecord[]

_eventBindings

_eventBindings: EventBinding[]

_genConfig

_records

_records: ProtoRecord[]

bindingTargets

bindingTargets: BindingTarget[]

changes

changes: any[]

contentChildren

contentChildren: any[]

context

context: any

directiveIndices

directiveIndices: DirectiveIndex[]

dispatcher

dispatcher: ChangeDispatcher

id

id: string

localPipes

localPipes: any[]

locals

locals: Locals

mode

numberOfPropertyProtoRecords

numberOfPropertyProtoRecords: number

outputSubscriptions

outputSubscriptions: any[]

parent

pipes

pipes: Pipes

prevContexts

prevContexts: any[]

propertyBindingIndex

propertyBindingIndex: number

ref

state

strategy

values

values: any[]

viewChildren

viewChildren: any[]

_addChange

  • _addChange(bindingRecord: BindingRecord, change: any, changes: any): any
  • internal

    Parameters

    Returns any

_argsChanged

  • Parameters

    Returns boolean

_argsOrContextChanged

  • Parameters

    Returns boolean

_calculateCurrValue

  • Parameters

    Returns any

_check

  • internal

    Parameters

    Returns SimpleChange

_computeSkipLength

  • _computeSkipLength(protoIndex: number, proto: ProtoRecord, values: any[]): number
  • Parameters

    Returns number

_createEventHandler

  • _createEventHandler(boundElementIndex: number, eventName: string): Function
  • Parameters

    • boundElementIndex: number
    • eventName: string

    Returns Function

_destroyDirectives

  • _destroyDirectives(): void
  • internal

    Returns void

_destroyPipes

  • _destroyPipes(): void
  • internal

    Returns void

_detectChangesContentChildren

  • _detectChangesContentChildren(throwOnChange: boolean): void

_detectChangesInViewChildren

  • _detectChangesInViewChildren(throwOnChange: boolean): void

_firstInBinding

  • internal

    Parameters

    Returns boolean

_getDetectorFor

  • internal

    Parameters

    Returns ChangeDetector

_getDirectiveFor

  • internal

    Parameters

    Returns any

_markPathAsCheckOnce

  • internal

    Parameters

    Returns void

_matchingEventBindings

  • _matchingEventBindings(eventName: string, elIndex: number): EventBinding[]
  • internal

    Parameters

    • eventName: string
    • elIndex: number

    Returns EventBinding[]

_pipeCheck

  • Parameters

    • proto: ProtoRecord
    • throwOnChange: boolean
    • values: any[]

    Returns SimpleChange

_pipeFor

  • Parameters

    Returns any

_processEventBinding

  • internal

    Parameters

    Returns any

_pureFuncAndArgsDidNotChange

  • _pureFuncAndArgsDidNotChange(proto: ProtoRecord): boolean
  • Parameters

    Returns boolean

_readArgs

  • _readArgs(proto: ProtoRecord, values: any[]): Array<any>
  • Parameters

    Returns Array<any>

_readContext

  • Parameters

    Returns any

_readPipe

  • Parameters

    Returns any

_readSelf

  • Parameters

    Returns any

_referenceCheck

  • internal

    Parameters

    Returns SimpleChange

_setChanged

  • _setChanged(proto: ProtoRecord, value: boolean): void
  • Parameters

    Returns void

_updateDirectiveOrElement

  • _updateDirectiveOrElement(change: any, bindingRecord: any): void
  • internal

    Parameters

    • change: any
    • bindingRecord: any

    Returns void

_writePipe

  • Parameters

    Returns void

_writeSelf

  • _writeSelf(proto: ProtoRecord, value: any, values: any[]): void
  • Parameters

    Returns void

addChange

  • addChange(changes: object, oldValue: any, newValue: any): object
  • Parameters

    • changes: object
      • [key: string]: any
    • oldValue: any
    • newValue: any

    Returns object

    • [key: string]: any

addContentChild

addViewChild

afterContentLifecycleCallbacks

  • afterContentLifecycleCallbacks(): void

afterContentLifecycleCallbacksInternal

  • afterContentLifecycleCallbacksInternal(): void

afterViewLifecycleCallbacks

  • afterViewLifecycleCallbacks(): void

afterViewLifecycleCallbacksInternal

  • afterViewLifecycleCallbacksInternal(): void

checkNoChanges

  • checkNoChanges(): void

dehydrate

  • dehydrate(): void

dehydrateDirectives

  • dehydrateDirectives(destroyPipes: boolean): void

destroyRecursive

  • destroyRecursive(): void

detectChanges

  • detectChanges(): void

detectChangesInRecords

  • detectChangesInRecords(throwOnChange: boolean): void

detectChangesInRecordsInternal

  • detectChangesInRecordsInternal(throwOnChange: boolean): void

getDetectorFor

getDirectiveFor

  • getDirectiveFor(directives: any, index: number): any
  • Parameters

    • directives: any
    • index: number

    Returns any

handleEvent

  • handleEvent(eventName: string, elIndex: number, event: any): boolean

handleEventInternal

  • handleEventInternal(eventName: string, elIndex: number, locals: Locals): boolean

hydrate

hydrateDirectives

hydrated

  • hydrated(): boolean
  • Returns boolean

logBindingUpdate

  • logBindingUpdate(value: any): void

markAsCheckOnce

  • markAsCheckOnce(): void

markPathToRootAsCheckOnce

  • markPathToRootAsCheckOnce(): void

notifyDispatcher

  • notifyDispatcher(value: any): void

remove

  • remove(): void

removeContentChild

removeViewChild

runDetectChanges

  • runDetectChanges(throwOnChange: boolean): void
  • Parameters

    • throwOnChange: boolean

    Returns void

throwDehydratedError

  • throwDehydratedError(detail: string): void

throwOnChangeError

  • throwOnChangeError(oldValue: any, newValue: any): void
  • Parameters

    • oldValue: any
    • newValue: any

    Returns void

"node_modules/angular2/ts/src/core/change_detection/event_binding"

"node_modules/angular2/ts/src/core/change_detection/event_binding":

EventBinding

EventBinding:

constructor

  • Parameters

    Returns EventBinding

dirIndex

dirIndex: DirectiveIndex

elIndex

elIndex: number

eventName

eventName: string

records

records: ProtoRecord[]

"node_modules/angular2/ts/src/core/change_detection/exceptions"

"node_modules/angular2/ts/src/core/change_detection/exceptions":

ChangeDetectionError

ChangeDetectionError:

Thrown when an expression evaluation raises an exception.

This error wraps the original exception to attach additional contextual information that can be useful for debugging.

Example (live demo)

```typescript

directive

({selector: 'child', inputs: ['prop']}) class Child { prop; }

component

({ selector: 'app', template: <child [prop]="field.first"></child>, directives: [Child] }) class App { field = null; }

bootstrap(App); ```

You can access the original exception and stack through the originalException and originalStack properties.

constructor

  • new ChangeDetectionError(exp: string, originalException: any, originalStack: any, context: any): ChangeDetectionError
  • Parameters

    • exp: string
    • originalException: any
    • originalStack: any
    • context: any

    Returns ChangeDetectionError

context

context: any

location

location: string

Information about the expression that triggered the exception.

message

message: string

originalException

originalException: any

originalStack

originalStack: any

wrapperMessage

wrapperMessage: string

wrapperStack

wrapperStack: any

message

message: string

name

name: string

stack

stack: string

toString

  • toString(): string
  • Returns string

DehydratedException

DehydratedException:

Thrown when change detector executes on dehydrated view.

This error indicates a bug in the framework.

This is an internal Angular error.

constructor

  • Parameters

    • details: string

    Returns DehydratedException

message

message: string

stack

stack: any

message

message: string

name

name: string

stack

stack: string

toString

  • toString(): string
  • Returns string

EventEvaluationError

EventEvaluationError:

Wraps an exception thrown by an event handler.

constructor

  • new EventEvaluationError(eventName: string, originalException: any, originalStack: any, context: any): EventEvaluationError
  • Parameters

    • eventName: string
    • originalException: any
    • originalStack: any
    • context: any

    Returns EventEvaluationError

context

context: any

message

message: string

originalException

originalException: any

originalStack

originalStack: any

wrapperMessage

wrapperMessage: string

wrapperStack

wrapperStack: any

message

message: string

name

name: string

stack

stack: string

toString

  • toString(): string
  • Returns string

EventEvaluationErrorContext

EventEvaluationErrorContext:

Error context included when an event handler throws an exception.

constructor

  • new EventEvaluationErrorContext(element: any, componentElement: any, context: any, locals: any, injector: any): EventEvaluationErrorContext
  • Parameters

    • element: any
    • componentElement: any
    • context: any
    • locals: any
    • injector: any

    Returns EventEvaluationErrorContext

componentElement

componentElement: any

context

context: any

element

element: any

injector

injector: any

locals

locals: any

ExpressionChangedAfterItHasBeenCheckedException

ExpressionChangedAfterItHasBeenCheckedException:

An error thrown if application changes model breaking the top-down data flow.

This exception is only thrown in dev mode.

Example

```typescript

component

({ selector: 'parent', template: <child [prop]="parentProp"></child>, directives: [forwardRef(() => Child)] }) class Parent { parentProp = "init"; }

directive

({selector: 'child', inputs: ['prop']}) class Child { constructor(public parent: Parent) {}

set prop(v) { // this updates the parent property, which is disallowed during change detection // this will result in ExpressionChangedAfterItHasBeenCheckedException this.parent.parentProp = "updated"; } } ```

constructor

  • Parameters

    • exp: string
    • oldValue: any
    • currValue: any
    • context: any

    Returns ExpressionChangedAfterItHasBeenCheckedException

message

message: string

stack

stack: any

message

message: string

name

name: string

stack

stack: string

toString

  • toString(): string
  • Returns string

"node_modules/angular2/ts/src/core/change_detection/interfaces"

"node_modules/angular2/ts/src/core/change_detection/interfaces":

ChangeDetectorDefinition

ChangeDetectorDefinition:

constructor

bindingRecords

bindingRecords: BindingRecord[]

directiveRecords

directiveRecords: DirectiveRecord[]

eventRecords

eventRecords: BindingRecord[]

genConfig

id

id: string

strategy

variableNames

variableNames: string[]

ChangeDetectorGenConfig

ChangeDetectorGenConfig:

constructor

  • new ChangeDetectorGenConfig(genDebugInfo: boolean, logBindingUpdate: boolean, useJit: boolean): ChangeDetectorGenConfig
  • Parameters

    • genDebugInfo: boolean
    • logBindingUpdate: boolean
    • useJit: boolean

    Returns ChangeDetectorGenConfig

genDebugInfo

genDebugInfo: boolean

logBindingUpdate

logBindingUpdate: boolean

useJit

useJit: boolean

DebugContext

DebugContext:

constructor

  • new DebugContext(element: any, componentElement: any, directive: any, context: any, locals: any, injector: any): DebugContext
  • Parameters

    • element: any
    • componentElement: any
    • directive: any
    • context: any
    • locals: any
    • injector: any

    Returns DebugContext

componentElement

componentElement: any

context

context: any

directive

directive: any

element

element: any

injector

injector: any

locals

locals: any

ChangeDetector

ChangeDetector:

mode

parent

ref

addContentChild

  • Parameters

    Returns void

addViewChild

  • Parameters

    Returns void

checkNoChanges

  • checkNoChanges(): void
  • Returns void

dehydrate

  • dehydrate(): void
  • Returns void

destroyRecursive

  • destroyRecursive(): void
  • Returns void

detectChanges

  • detectChanges(): void
  • Returns void

handleEvent

  • handleEvent(eventName: string, elIndex: number, event: any): any
  • Parameters

    • eventName: string
    • elIndex: number
    • event: any

    Returns any

hydrate

  • Parameters

    Returns void

markAsCheckOnce

  • markAsCheckOnce(): void
  • Returns void

markPathToRootAsCheckOnce

  • markPathToRootAsCheckOnce(): void
  • Returns void

remove

  • remove(): void
  • Returns void

removeContentChild

  • Parameters

    Returns void

removeViewChild

  • Parameters

    Returns void

ChangeDispatcher

ChangeDispatcher:

getDebugContext

  • getDebugContext(appElement: any, elementIndex: number, directiveIndex: number): DebugContext
  • Parameters

    • appElement: any
    • elementIndex: number
    • directiveIndex: number

    Returns DebugContext

getDetectorFor

  • Parameters

    Returns ChangeDetector

getDirectiveFor

  • Parameters

    Returns any

logBindingUpdate

  • logBindingUpdate(bindingTarget: BindingTarget, value: any): void
  • Parameters

    Returns void

notifyAfterContentChecked

  • notifyAfterContentChecked(): void
  • Returns void

notifyAfterViewChecked

  • notifyAfterViewChecked(): void
  • Returns void

notifyOnBinding

  • notifyOnBinding(bindingTarget: BindingTarget, value: any): void
  • Parameters

    Returns void

notifyOnDestroy

  • notifyOnDestroy(): void
  • Returns void

ProtoChangeDetector

ProtoChangeDetector:

instantiate

  • Returns ChangeDetector

"node_modules/angular2/ts/src/core/change_detection/jit_proto_change_detector"

"node_modules/angular2/ts/src/core/change_detection/jit_proto_change_detector":

JitProtoChangeDetector

JitProtoChangeDetector:

constructor

_factory

_factory: Function
internal

definition

_createFactory

  • internal

    Parameters

    Returns Function

instantiate

isSupported

  • isSupported(): boolean
  • Returns boolean

"node_modules/angular2/ts/src/core/change_detection/parser/ast"

"node_modules/angular2/ts/src/core/change_detection/parser/ast":

AST

AST:

toString

  • toString(): string
  • Returns string

visit

  • Parameters

    Returns any

ASTWithSource

ASTWithSource:

constructor

  • Parameters

    • ast: AST
    • source: string
    • location: string

    Returns ASTWithSource

ast

ast: AST

location

location: string

source

source: string

toString

  • toString(): string
  • Returns string

visit

  • Parameters

    Returns any

AstTransformer

AstTransformer:

visitAll

  • visitAll(asts: any[]): any[]
  • Parameters

    • asts: any[]

    Returns any[]

visitBinary

  • Parameters

    Returns AST

visitChain

  • Parameters

    Returns AST

visitConditional

visitFunctionCall

visitImplicitReceiver

visitInterpolation

visitKeyedRead

visitKeyedWrite

visitLiteralArray

visitLiteralMap

visitLiteralPrimitive

visitMethodCall

visitPipe

visitPrefixNot

visitPropertyRead

visitPropertyWrite

visitQuote

  • Parameters

    Returns AST

visitSafeMethodCall

visitSafePropertyRead

Binary

Binary:

constructor

  • new Binary(operation: string, left: AST, right: AST): Binary
  • Parameters

    • operation: string
    • left: AST
    • right: AST

    Returns Binary

left

left: AST

operation

operation: string

right

right: AST

toString

  • toString(): string
  • Returns string

visit

  • Parameters

    Returns any

BindingPipe

BindingPipe:

constructor

  • Parameters

    • exp: AST
    • name: string
    • args: any[]

    Returns BindingPipe

args

args: any[]

exp

exp: AST

name

name: string

toString

  • toString(): string
  • Returns string

visit

  • Parameters

    Returns any

Chain

Chain:

Multiple expressions separated by a semicolon.

constructor

  • new Chain(expressions: any[]): Chain
  • Parameters

    • expressions: any[]

    Returns Chain

expressions

expressions: any[]

toString

  • toString(): string
  • Returns string

visit

  • Parameters

    Returns any

Conditional

Conditional:

constructor

  • Parameters

    Returns Conditional

condition

condition: AST

falseExp

falseExp: AST

trueExp

trueExp: AST

toString

  • toString(): string
  • Returns string

visit

  • Parameters

    Returns any

EmptyExpr

EmptyExpr:

toString

  • toString(): string
  • Returns string

visit

  • Parameters

    Returns void

FunctionCall

FunctionCall:

constructor

  • Parameters

    • target: AST
    • args: any[]

    Returns FunctionCall

args

args: any[]

target

target: AST

toString

  • toString(): string
  • Returns string

visit

  • Parameters

    Returns any

ImplicitReceiver

ImplicitReceiver:

toString

  • toString(): string
  • Returns string

visit

  • Parameters

    Returns any

Interpolation

Interpolation:

constructor

  • new Interpolation(strings: any[], expressions: any[]): Interpolation
  • Parameters

    • strings: any[]
    • expressions: any[]

    Returns Interpolation

expressions

expressions: any[]

strings

strings: any[]

toString

  • toString(): string
  • Returns string

visit

  • Parameters

    Returns any

KeyedRead

KeyedRead:

constructor

  • Parameters

    Returns KeyedRead

key

key: AST

obj

obj: AST

toString

  • toString(): string
  • Returns string

visit

  • Parameters

    Returns any

KeyedWrite

KeyedWrite:

constructor

  • Parameters

    Returns KeyedWrite

key

key: AST

obj

obj: AST

value

value: AST

toString

  • toString(): string
  • Returns string

visit

  • Parameters

    Returns any

LiteralArray

LiteralArray:

constructor

  • Parameters

    • expressions: any[]

    Returns LiteralArray

expressions

expressions: any[]

toString

  • toString(): string
  • Returns string

visit

  • Parameters

    Returns any

LiteralMap

LiteralMap:

constructor

  • new LiteralMap(keys: any[], values: any[]): LiteralMap
  • Parameters

    • keys: any[]
    • values: any[]

    Returns LiteralMap

keys

keys: any[]

values

values: any[]

toString

  • toString(): string
  • Returns string

visit

  • Parameters

    Returns any

LiteralPrimitive

LiteralPrimitive:

constructor

  • Parameters

    • value: any

    Returns LiteralPrimitive

value

value: any

toString

  • toString(): string
  • Returns string

visit

  • Parameters

    Returns any

MethodCall

MethodCall:

constructor

  • new MethodCall(receiver: AST, name: string, fn: Function, args: any[]): MethodCall
  • Parameters

    • receiver: AST
    • name: string
    • fn: Function
    • args: any[]

    Returns MethodCall

args

args: any[]

fn

fn: Function

name

name: string

receiver

receiver: AST

toString

  • toString(): string
  • Returns string

visit

  • Parameters

    Returns any

PrefixNot

PrefixNot:

constructor

  • Parameters

    • expression: AST

    Returns PrefixNot

expression

expression: AST

toString

  • toString(): string
  • Returns string

visit

  • Parameters

    Returns any

PropertyRead

PropertyRead:

constructor

  • new PropertyRead(receiver: AST, name: string, getter: Function): PropertyRead
  • Parameters

    • receiver: AST
    • name: string
    • getter: Function

    Returns PropertyRead

getter

getter: Function

name

name: string

receiver

receiver: AST

toString

  • toString(): string
  • Returns string

visit

  • Parameters

    Returns any

PropertyWrite

PropertyWrite:

constructor

  • Parameters

    • receiver: AST
    • name: string
    • setter: Function
    • value: AST

    Returns PropertyWrite

name

name: string

receiver

receiver: AST

setter

setter: Function

value

value: AST

toString

  • toString(): string
  • Returns string

visit

  • Parameters

    Returns any

Quote

Quote:

Represents a quoted expression of the form:

quote = prefix : uninterpretedExpression prefix = identifier uninterpretedExpression = arbitrary string

A quoted expression is meant to be pre-processed by an AST transformer that converts it into another AST that no longer contains quoted expressions. It is meant to allow third-party developers to extend Angular template expression language. The uninterpretedExpression part of the quote is therefore not interpreted by the Angular's own expression parser.

constructor

  • new Quote(prefix: string, uninterpretedExpression: string, location: any): Quote
  • Parameters

    • prefix: string
    • uninterpretedExpression: string
    • location: any

    Returns Quote

location

location: any

prefix

prefix: string

uninterpretedExpression

uninterpretedExpression: string

toString

  • toString(): string
  • Returns string

visit

  • Parameters

    Returns any

RecursiveAstVisitor

RecursiveAstVisitor:

visitAll

  • visitAll(asts: AST[]): any
  • Parameters

    Returns any

visitBinary

  • visitBinary(ast: Binary): any
  • Parameters

    Returns any

visitChain

  • visitChain(ast: Chain): any
  • Parameters

    Returns any

visitConditional

visitFunctionCall

visitImplicitReceiver

visitInterpolation

visitKeyedRead

visitKeyedWrite

visitLiteralArray

visitLiteralMap

visitLiteralPrimitive

visitMethodCall

visitPipe

  • Parameters

    Returns any

visitPrefixNot

visitPropertyRead

visitPropertyWrite

visitQuote

  • visitQuote(ast: Quote): any
  • Parameters

    Returns any

visitSafeMethodCall

visitSafePropertyRead

SafeMethodCall

SafeMethodCall:

constructor

  • new SafeMethodCall(receiver: AST, name: string, fn: Function, args: any[]): SafeMethodCall
  • Parameters

    • receiver: AST
    • name: string
    • fn: Function
    • args: any[]

    Returns SafeMethodCall

args

args: any[]

fn

fn: Function

name

name: string

receiver

receiver: AST

toString

  • toString(): string
  • Returns string

visit

  • Parameters

    Returns any

SafePropertyRead

SafePropertyRead:

constructor

  • Parameters

    • receiver: AST
    • name: string
    • getter: Function

    Returns SafePropertyRead

getter

getter: Function

name

name: string

receiver

receiver: AST

toString

  • toString(): string
  • Returns string

visit

  • Parameters

    Returns any

TemplateBinding

TemplateBinding:

constructor

  • Parameters

    • key: string
    • keyIsVar: boolean
    • name: string
    • expression: ASTWithSource

    Returns TemplateBinding

expression

expression: ASTWithSource

key

key: string

keyIsVar

keyIsVar: boolean

name

name: string

AstVisitor

AstVisitor:

visitBinary

  • visitBinary(ast: Binary): any
  • Parameters

    Returns any

visitChain

  • visitChain(ast: Chain): any
  • Parameters

    Returns any

visitConditional

  • Parameters

    Returns any

visitFunctionCall

  • Parameters

    Returns any

visitImplicitReceiver

  • Parameters

    Returns any

visitInterpolation

  • Parameters

    Returns any

visitKeyedRead

  • Parameters

    Returns any

visitKeyedWrite

  • Parameters

    Returns any

visitLiteralArray

  • Parameters

    Returns any

visitLiteralMap

  • Parameters

    Returns any

visitLiteralPrimitive

  • Parameters

    Returns any

visitMethodCall

  • Parameters

    Returns any

visitPipe

  • Parameters

    Returns any

visitPrefixNot

  • Parameters

    Returns any

visitPropertyRead

  • Parameters

    Returns any

visitPropertyWrite

  • Parameters

    Returns any

visitQuote

  • visitQuote(ast: Quote): any
  • Parameters

    Returns any

visitSafeMethodCall

  • Parameters

    Returns any

visitSafePropertyRead

  • Parameters

    Returns any

"node_modules/angular2/ts/src/core/change_detection/parser/lexer"

"node_modules/angular2/ts/src/core/change_detection/parser/lexer":

TokenType

TokenType:

Character

Character:

Identifier

Identifier:

Keyword

Keyword:

Number

Number:

Operator

Operator:

String

String:

Lexer

Lexer:

tokenize

  • tokenize(text: string): any[]
  • Parameters

    • text: string

    Returns any[]

ScannerError

ScannerError:

constructor

  • Parameters

    • message: any

    Returns ScannerError

message

message: any

stack

stack: any

message

message: string

name

name: string

stack

stack: string

toString

  • toString(): string
  • Returns string

Token

Token:

constructor

  • new Token(index: number, type: TokenType, numValue: number, strValue: string): Token
  • Parameters

    • index: number
    • type: TokenType
    • numValue: number
    • strValue: string

    Returns Token

index

index: number

numValue

numValue: number

strValue

strValue: string

type

type: TokenType

isCharacter

  • isCharacter(code: number): boolean
  • Parameters

    • code: number

    Returns boolean

isIdentifier

  • isIdentifier(): boolean
  • Returns boolean

isKeyword

  • isKeyword(): boolean
  • Returns boolean

isKeywordFalse

  • isKeywordFalse(): boolean
  • Returns boolean

isKeywordNull

  • isKeywordNull(): boolean
  • Returns boolean

isKeywordTrue

  • isKeywordTrue(): boolean
  • Returns boolean

isKeywordUndefined

  • isKeywordUndefined(): boolean
  • Returns boolean

isKeywordVar

  • isKeywordVar(): boolean
  • Returns boolean

isNumber

  • isNumber(): boolean
  • Returns boolean

isOperator

  • isOperator(operater: string): boolean
  • Parameters

    • operater: string

    Returns boolean

isString

  • isString(): boolean
  • Returns boolean

toNumber

  • toNumber(): number
  • Returns number

toString

  • toString(): string
  • Returns string

_Scanner

_Scanner:

constructor

  • Parameters

    • input: string

    Returns _Scanner

index

index: number

input

input: string

length

length: number

peek

peek: number

advance

  • advance(): void
  • Returns void

error

  • error(message: string, offset: number): void
  • Parameters

    • message: string
    • offset: number

    Returns void

scanCharacter

  • scanCharacter(start: number, code: number): Token
  • Parameters

    • start: number
    • code: number

    Returns Token

scanComplexOperator

  • scanComplexOperator(start: number, one: string, twoCode: number, two: string, threeCode?: number, three?: string): Token
  • Tokenize a 2/3 char long operator

    Parameters

    • start: number

      start index in the expression

    • one: string

      first symbol (always part of the operator)

    • twoCode: number

      code point for the second symbol

    • two: string

      second symbol (part of the operator when the second code point matches)

    • Optional threeCode: number

      code point for the third symbol

    • Optional three: string

      third symbol (part of the operator when provided and matches source expression)

    Returns Token

scanIdentifier

  • scanIdentifier(): Token
  • Returns Token

scanNumber

  • scanNumber(start: number): Token
  • Parameters

    • start: number

    Returns Token

scanOperator

  • scanOperator(start: number, str: string): Token
  • Parameters

    • start: number
    • str: string

    Returns Token

scanString

  • Returns Token

scanToken

  • Returns Token

$$

$$: number

$0

$0: number

$9

$9: number

$A

$A: number

$AMPERSAND

$AMPERSAND: number

$BACKSLASH

$BACKSLASH: number

$BANG

$BANG: number

$BAR

$BAR: number

$CARET

$CARET: number

$COLON

$COLON: number

$COMMA

$COMMA: number

$CR

$CR: number

$DQ

$DQ: number

$E

$E: number

$EOF

$EOF: number

$EQ

$EQ: number

$FF

$FF: number

$GT

$GT: number

$HASH

$HASH: number

$LBRACE

$LBRACE: number

$LBRACKET

$LBRACKET: number

$LF

$LF: number

$LPAREN

$LPAREN: number

$LT

$LT: number

$MINUS

$MINUS: number

$NBSP

$NBSP: number

$PERCENT

$PERCENT: number

$PERIOD

$PERIOD: number

$PLUS

$PLUS: number

$QUESTION

$QUESTION: number

$RBRACE

$RBRACE: number

$RBRACKET

$RBRACKET: number

$RPAREN

$RPAREN: number

$SEMICOLON

$SEMICOLON: number

$SLASH

$SLASH: number

$SPACE

$SPACE: number

$SQ

$SQ: number

$STAR

$STAR: number

$TAB

$TAB: number

$VTAB

$VTAB: number

$Z

$Z: number

$_

$_: number

$a

$a: number

$e

$e: number

$f

$f: number

$n

$n: number

$r

$r: number

$t

$t: number

$u

$u: number

$v

$v: number

$z

$z: number

EOF

EOF: Token

KEYWORDS

KEYWORDS: Set<string>

OPERATORS

OPERATORS: Set<string>

isDigit

  • isDigit(code: number): boolean
  • Parameters

    • code: number

    Returns boolean

isExponentSign

  • isExponentSign(code: number): boolean
  • Parameters

    • code: number

    Returns boolean

isExponentStart

  • isExponentStart(code: number): boolean
  • Parameters

    • code: number

    Returns boolean

isIdentifier

  • isIdentifier(input: string): boolean
  • Parameters

    • input: string

    Returns boolean

isIdentifierPart

  • isIdentifierPart(code: number): boolean
  • Parameters

    • code: number

    Returns boolean

isIdentifierStart

  • isIdentifierStart(code: number): boolean
  • Parameters

    • code: number

    Returns boolean

isWhitespace

  • isWhitespace(code: number): boolean
  • Parameters

    • code: number

    Returns boolean

newCharacterToken

  • newCharacterToken(index: number, code: number): Token
  • Parameters

    • index: number
    • code: number

    Returns Token

newIdentifierToken

  • newIdentifierToken(index: number, text: string): Token
  • Parameters

    • index: number
    • text: string

    Returns Token

newKeywordToken

  • newKeywordToken(index: number, text: string): Token
  • Parameters

    • index: number
    • text: string

    Returns Token

newNumberToken

  • newNumberToken(index: number, n: number): Token
  • Parameters

    • index: number
    • n: number

    Returns Token

newOperatorToken

  • newOperatorToken(index: number, text: string): Token
  • Parameters

    • index: number
    • text: string

    Returns Token

newStringToken

  • newStringToken(index: number, text: string): Token
  • Parameters

    • index: number
    • text: string

    Returns Token

unescape

  • unescape(code: number): number
  • Parameters

    • code: number

    Returns number

"node_modules/angular2/ts/src/core/change_detection/parser/locals"

"node_modules/angular2/ts/src/core/change_detection/parser/locals":

Locals

Locals:

constructor

  • new Locals(parent: Locals, current: Map<any, any>): Locals
  • Parameters

    • parent: Locals
    • current: Map<any, any>

    Returns Locals

current

current: Map<any, any>

parent

parent: Locals

clearLocalValues

  • clearLocalValues(): void
  • Returns void

contains

  • contains(name: string): boolean
  • Parameters

    • name: string

    Returns boolean

get

  • get(name: string): any
  • Parameters

    • name: string

    Returns any

set

  • set(name: string, value: any): void
  • Parameters

    • name: string
    • value: any

    Returns void

"node_modules/angular2/ts/src/core/change_detection/parser/parser"

"node_modules/angular2/ts/src/core/change_detection/parser/parser":

ParseException

ParseException:

constructor

  • new ParseException(message: string, input: string, errLocation: string, ctxLocation?: any): ParseException
  • Parameters

    • message: string
    • input: string
    • errLocation: string
    • Optional ctxLocation: any

    Returns ParseException

message

message: string

stack

stack: any

message

message: string

name

name: string

stack

stack: string

toString

  • toString(): string
  • Returns string

Parser

Parser:

constructor

  • new Parser(_lexer: Lexer, providedReflector?: Reflector): Parser
  • Parameters

    • _lexer: Lexer
    • Default value providedReflector: Reflector = null

    Returns Parser

_lexer

_lexer: Lexer
internal

_reflector

_reflector: Reflector
internal

_checkNoInterpolation

  • _checkNoInterpolation(input: string, location: any): void
  • Parameters

    • input: string
    • location: any

    Returns void

_findInterpolationErrorColumn

  • _findInterpolationErrorColumn(parts: string[], partInErrIdx: number): number
  • Parameters

    • parts: string[]
    • partInErrIdx: number

    Returns number

_parseBindingAst

  • _parseBindingAst(input: string, location: string): AST
  • Parameters

    • input: string
    • location: string

    Returns AST

_parseQuote

  • _parseQuote(input: string, location: any): AST
  • Parameters

    • input: string
    • location: any

    Returns AST

parseAction

  • Parameters

    • input: string
    • location: any

    Returns ASTWithSource

parseBinding

  • Parameters

    • input: string
    • location: any

    Returns ASTWithSource

parseInterpolation

  • parseInterpolation(input: string, location: any): ASTWithSource
  • Parameters

    • input: string
    • location: any

    Returns ASTWithSource

parseSimpleBinding

  • parseSimpleBinding(input: string, location: string): ASTWithSource
  • Parameters

    • input: string
    • location: string

    Returns ASTWithSource

parseTemplateBindings

  • Parameters

    • input: string
    • location: any

    Returns TemplateBinding[]

splitInterpolation

  • Parameters

    • input: string
    • location: string

    Returns SplitInterpolation

wrapLiteralPrimitive

  • wrapLiteralPrimitive(input: string, location: any): ASTWithSource
  • Parameters

    • input: string
    • location: any

    Returns ASTWithSource

SimpleExpressionChecker

SimpleExpressionChecker:

simple

simple: boolean

visitAll

  • visitAll(asts: any[]): any[]
  • Parameters

    • asts: any[]

    Returns any[]

visitBinary

  • visitBinary(ast: Binary): void
  • Parameters

    Returns void

visitChain

  • visitChain(ast: Chain): void
  • Parameters

    Returns void

visitConditional

visitFunctionCall

visitImplicitReceiver

visitInterpolation

visitKeyedRead

  • Parameters

    Returns void

visitKeyedWrite

visitLiteralArray

visitLiteralMap

visitLiteralPrimitive

visitMethodCall

visitPipe

  • Parameters

    Returns void

visitPrefixNot

  • Parameters

    Returns void

visitPropertyRead

visitPropertyWrite

visitQuote

  • visitQuote(ast: Quote): void
  • Parameters

    Returns void

visitSafeMethodCall

visitSafePropertyRead

check

  • check(ast: AST): boolean
  • Parameters

    Returns boolean

SplitInterpolation

SplitInterpolation:

constructor

  • Parameters

    • strings: string[]
    • expressions: string[]

    Returns SplitInterpolation

expressions

expressions: string[]

strings

strings: string[]

_ParseAST

_ParseAST:

constructor

  • new _ParseAST(input: string, location: any, tokens: any[], reflector: Reflector, parseAction: boolean): _ParseAST
  • Parameters

    • input: string
    • location: any
    • tokens: any[]
    • reflector: Reflector
    • parseAction: boolean

    Returns _ParseAST

index

index: number

input

input: string

location

location: any

parseAction

parseAction: boolean

reflector

reflector: Reflector

tokens

tokens: any[]

inputIndex

inputIndex:

next

next:

advance

  • advance(): void
  • Returns void

error

  • error(message: string, index?: number): void
  • Parameters

    • message: string
    • Default value index: number = null

    Returns void

expectCharacter

  • expectCharacter(code: number): void
  • Parameters

    • code: number

    Returns void

expectIdentifierOrKeyword

  • expectIdentifierOrKeyword(): string
  • Returns string

expectIdentifierOrKeywordOrString

  • expectIdentifierOrKeywordOrString(): string
  • Returns string

expectOperator

  • expectOperator(operator: string): void
  • Parameters

    • operator: string

    Returns void

expectTemplateBindingKey

  • expectTemplateBindingKey(): string
  • An identifier, a keyword, a string with an optional - inbetween.

    Returns string

optionalCharacter

  • optionalCharacter(code: number): boolean
  • Parameters

    • code: number

    Returns boolean

optionalKeywordVar

  • optionalKeywordVar(): boolean
  • Returns boolean

optionalOperator

  • optionalOperator(op: string): boolean
  • Parameters

    • op: string

    Returns boolean

parseAccessMemberOrMethodCall

  • parseAccessMemberOrMethodCall(receiver: AST, isSafe?: boolean): AST
  • Parameters

    • receiver: AST
    • Default value isSafe: boolean = false

    Returns AST

parseAdditive

  • parseAdditive(): AST
  • Returns AST

parseBlockContent

  • parseBlockContent(): AST
  • Returns AST

parseCallArguments

  • Returns BindingPipe[]

parseCallChain

  • parseCallChain(): AST
  • Returns AST

parseChain

  • parseChain(): AST
  • Returns AST

parseConditional

  • parseConditional(): AST
  • Returns AST

parseEquality

  • parseEquality(): AST
  • Returns AST

parseExpression

  • parseExpression(): AST
  • Returns AST

parseExpressionList

  • parseExpressionList(terminator: number): any[]
  • Parameters

    • terminator: number

    Returns any[]

parseLiteralMap

  • Returns LiteralMap

parseLogicalAnd

  • parseLogicalAnd(): AST
  • Returns AST

parseLogicalOr

  • parseLogicalOr(): AST
  • Returns AST

parseMultiplicative

  • parseMultiplicative(): AST
  • Returns AST

parsePipe

  • parsePipe(): AST
  • Returns AST

parsePrefix

  • parsePrefix(): AST
  • Returns AST

parsePrimary

  • parsePrimary(): AST
  • Returns AST

parseRelational

  • parseRelational(): AST
  • Returns AST

parseTemplateBindings

  • parseTemplateBindings(): any[]
  • Returns any[]

peek

  • peek(offset: number): Token
  • Parameters

    • offset: number

    Returns Token

peekKeywordVar

  • peekKeywordVar(): boolean
  • Returns boolean

INTERPOLATION_REGEXP

INTERPOLATION_REGEXP: RegExp

_implicitReceiver

_implicitReceiver: ImplicitReceiver

"node_modules/angular2/ts/src/core/change_detection/pipe_lifecycle_reflector"

"node_modules/angular2/ts/src/core/change_detection/pipe_lifecycle_reflector":

implementsOnDestroy

  • implementsOnDestroy(pipe: any): boolean
  • Parameters

    • pipe: any

    Returns boolean

"node_modules/angular2/ts/src/core/change_detection/pipe_transform"

"node_modules/angular2/ts/src/core/change_detection/pipe_transform":

PipeTransform

PipeTransform:

To create a Pipe, you must implement this interface.

Angular invokes the transform method with the value of a binding as the first argument, and any parameters as the second argument in list form.

Syntax

value | pipeName[:arg0[:arg1...]]

Example (live demo)

The RepeatPipe below repeats the value as many times as indicated by the first argument:

``` import {Pipe, PipeTransform} from 'angular2/core';

pipe

({name: 'repeat'}) export class RepeatPipe implements PipeTransform { transform(value: any, args: any[] = []) { if (args.length == 0) { throw new Error('repeat pipe requires one argument'); } let times: number = args[0]; return value.repeat(times); } } ```

Invoking {{ 'ok' | repeat:3 }} in a template produces okokok.

transform

  • transform(value: any, args: any[]): any
  • Parameters

    • value: any
    • args: any[]

    Returns any

"node_modules/angular2/ts/src/core/change_detection/pipes"

"node_modules/angular2/ts/src/core/change_detection/pipes":

SelectedPipe

SelectedPipe:

constructor

  • Parameters

    Returns SelectedPipe

pipe

pure

pure: boolean

Pipes

Pipes:

get

  • Parameters

    • name: string

    Returns SelectedPipe

"node_modules/angular2/ts/src/core/change_detection/pregen_proto_change_detector"

"node_modules/angular2/ts/src/core/change_detection/pregen_proto_change_detector":

"node_modules/angular2/ts/src/core/change_detection/proto_change_detector"

"node_modules/angular2/ts/src/core/change_detection/proto_change_detector":

DynamicProtoChangeDetector

DynamicProtoChangeDetector:

constructor

_definition

_directiveIndices

_directiveIndices: DirectiveIndex[]
internal

_eventBindingRecords

_eventBindingRecords: EventBinding[]
internal

_propertyBindingRecords

_propertyBindingRecords: ProtoRecord[]
internal

_propertyBindingTargets

_propertyBindingTargets: BindingTarget[]
internal

instantiate

ProtoRecordBuilder

ProtoRecordBuilder:

records

records: ProtoRecord[]

_appendRecords

  • _appendRecords(b: BindingRecord, variableNames: string[], bindingIndex: number): void
  • internal

    Parameters

    Returns void

_setArgumentToPureFunction

  • _setArgumentToPureFunction(startIndex: number): void
  • internal

    Parameters

    • startIndex: number

    Returns void

add

  • add(b: BindingRecord, variableNames: string[], bindingIndex: number): void
  • Parameters

    Returns void

_ConvertAstIntoProtoRecords

_ConvertAstIntoProtoRecords:

constructor

_bindingIndex

_bindingIndex: number

_bindingRecord

_bindingRecord: BindingRecord

_records

_records: ProtoRecord[]

_variableNames

_variableNames: string[]

_addRecord

  • _addRecord(type: any, name: any, funcOrValue: any, args: any, fixedArgs: any, context: any): number
  • Adds a ProtoRecord and returns its selfIndex.

    Parameters

    • type: any
    • name: any
    • funcOrValue: any
    • args: any
    • fixedArgs: any
    • context: any

    Returns number

_visitAll

  • _visitAll(asts: any[]): Array<any>
  • Parameters

    • asts: any[]

    Returns Array<any>

visitBinary

  • visitBinary(ast: Binary): number
  • Parameters

    Returns number

visitChain

  • visitChain(ast: Chain): number
  • Parameters

    Returns number

visitConditional

visitFunctionCall

visitImplicitReceiver

visitInterpolation

visitKeyedRead

  • Parameters

    Returns number

visitKeyedWrite

  • Parameters

    Returns number

visitLiteralArray

visitLiteralMap

  • Parameters

    Returns number

visitLiteralPrimitive

visitMethodCall

  • Parameters

    Returns number

visitPipe

  • Parameters

    Returns number

visitPrefixNot

  • Parameters

    Returns number

visitPropertyRead

visitPropertyWrite

visitQuote

  • visitQuote(ast: Quote): void
  • Parameters

    Returns void

visitSafeMethodCall

visitSafePropertyRead

append

  • Parameters

    Returns void

create

  • Parameters

    Returns ProtoRecord[]

_arrayFn

  • _arrayFn(length: number): Function
  • Parameters

    • length: number

    Returns Function

_interpolationFn

  • _interpolationFn(strings: any[]): (Anonymous function)
  • Parameters

    • strings: any[]

    Returns (Anonymous function)

_mapPrimitiveName

  • _mapPrimitiveName(keys: any[]): string
  • Parameters

    • keys: any[]

    Returns string

_operationToFunction

  • _operationToFunction(operation: string): Function
  • Parameters

    • operation: string

    Returns Function

_operationToPrimitiveName

  • _operationToPrimitiveName(operation: string): string
  • Parameters

    • operation: string

    Returns string

createEventRecords

createPropertyRecords

s

  • s(v: any): string
  • Parameters

    • v: any

    Returns string

"node_modules/angular2/ts/src/core/change_detection/proto_record"

"node_modules/angular2/ts/src/core/change_detection/proto_record":

RecordType

RecordType:

Chain

Chain:

CollectionLiteral

CollectionLiteral:

Const

Const:

DirectiveLifecycle

DirectiveLifecycle:

Interpolate

Interpolate:

InvokeClosure

InvokeClosure:

InvokeMethod

InvokeMethod:

KeyedRead

KeyedRead:

KeyedWrite

KeyedWrite:

Local

Local:

Pipe

Pipe:

PrimitiveOp

PrimitiveOp:

PropertyRead

PropertyRead:

PropertyWrite

PropertyWrite:

SafeMethodInvoke

SafeMethodInvoke:

SafeProperty

SafeProperty:

Self

Self:

SkipRecords

SkipRecords:

SkipRecordsIf

SkipRecordsIf:

SkipRecordsIfNot

SkipRecordsIfNot:

ProtoRecord

ProtoRecord:

constructor

  • new ProtoRecord(mode: RecordType, name: string, funcOrValue: any, args: any[], fixedArgs: any[], contextIndex: number, directiveIndex: DirectiveIndex, selfIndex: number, bindingRecord: BindingRecord, lastInBinding: boolean, lastInDirective: boolean, argumentToPureFunction: boolean, referencedBySelf: boolean, propertyBindingIndex: number): ProtoRecord
  • Parameters

    • mode: RecordType
    • name: string
    • funcOrValue: any
    • args: any[]
    • fixedArgs: any[]
    • contextIndex: number
    • directiveIndex: DirectiveIndex
    • selfIndex: number
    • bindingRecord: BindingRecord
    • lastInBinding: boolean
    • lastInDirective: boolean
    • argumentToPureFunction: boolean
    • referencedBySelf: boolean
    • propertyBindingIndex: number

    Returns ProtoRecord

args

args: any[]

argumentToPureFunction

argumentToPureFunction: boolean

bindingRecord

bindingRecord: BindingRecord

contextIndex

contextIndex: number

directiveIndex

directiveIndex: DirectiveIndex

fixedArgs

fixedArgs: any[]

funcOrValue

funcOrValue: any

lastInBinding

lastInBinding: boolean

lastInDirective

lastInDirective: boolean

mode

name

name: string

propertyBindingIndex

propertyBindingIndex: number

referencedBySelf

referencedBySelf: boolean

selfIndex

selfIndex: number

isConditionalSkipRecord

  • isConditionalSkipRecord(): boolean
  • Returns boolean

isLifeCycleRecord

  • isLifeCycleRecord(): boolean
  • Returns boolean

isPipeRecord

  • isPipeRecord(): boolean
  • Returns boolean

isPureFunction

  • isPureFunction(): boolean
  • Returns boolean

isSkipRecord

  • isSkipRecord(): boolean
  • Returns boolean

isUnconditionalSkipRecord

  • isUnconditionalSkipRecord(): boolean
  • Returns boolean

isUsedByOtherRecord

  • isUsedByOtherRecord(): boolean
  • Returns boolean

shouldBeChecked

  • shouldBeChecked(): boolean
  • Returns boolean

"node_modules/angular2/ts/src/core/console"

"node_modules/angular2/ts/src/core/console":

Console

Console:

log

  • log(message: string): void
  • Parameters

    • message: string

    Returns void

"node_modules/angular2/ts/src/core/debug/debug_node"

"node_modules/angular2/ts/src/core/debug/debug_node":

DebugElement

DebugElement:

constructor

  • new DebugElement(nativeNode: any, parent: any): DebugElement
  • Parameters

    • nativeNode: any
    • parent: any

    Returns DebugElement

attributes

attributes: Map<string, any>

childNodes

childNodes: DebugNode[]

componentInstance

componentInstance: any

injector

injector: Injector

listeners

listeners: EventListener[]

locals

locals: Map<string, any>

name

name: string

nativeElement

nativeElement: any

nativeNode

nativeNode: any

parent

parent: DebugElement

properties

properties: Map<string, any>

providerTokens

providerTokens: any[]

children

children:

addChild

  • Parameters

    Returns void

getLocal

  • getLocal(name: string): any
  • Parameters

    • name: string

    Returns any

inject

  • inject(token: any): any
  • Parameters

    • token: any

    Returns any

insertChildrenAfter

  • Parameters

    Returns void

query

  • Parameters

    Returns DebugElement

queryAll

  • Parameters

    Returns DebugElement[]

queryAllNodes

  • Parameters

    Returns DebugNode[]

removeChild

  • Parameters

    Returns void

setDebugInfo

  • setDebugInfo(info: RenderDebugInfo): void
  • Parameters

    • info: RenderDebugInfo

    Returns void

triggerEventHandler

  • triggerEventHandler(eventName: string, eventObj: Event): void
  • Parameters

    • eventName: string
    • eventObj: Event

    Returns void

DebugNode

DebugNode:

constructor

  • Parameters

    Returns DebugNode

componentInstance

componentInstance: any

injector

injector: Injector

listeners

listeners: EventListener[]

locals

locals: Map<string, any>

nativeNode

nativeNode: any

parent

parent: DebugElement

providerTokens

providerTokens: any[]

getLocal

  • getLocal(name: string): any
  • Parameters

    • name: string

    Returns any

inject

  • inject(token: any): any
  • Parameters

    • token: any

    Returns any

setDebugInfo

  • setDebugInfo(info: RenderDebugInfo): void
  • Parameters

    • info: RenderDebugInfo

    Returns void

EventListener

EventListener:

constructor

  • new EventListener(name: string, callback: Function): EventListener
  • Parameters

    • name: string
    • callback: Function

    Returns EventListener

callback

callback: Function

name

name: string

_nativeNodeToDebugNode

_nativeNodeToDebugNode: Map<any, DebugNode>

_queryElementChildren

_queryNodeChildren

  • Parameters

    Returns void

asNativeElements

  • Parameters

    Returns any

getAllDebugNodes

  • Returns DebugNode[]

getDebugNode

  • Parameters

    • nativeNode: any

    Returns DebugNode

indexDebugNode

  • Parameters

    Returns void

removeDebugNodeFromIndex

  • removeDebugNodeFromIndex(node: DebugNode): void
  • Parameters

    Returns void

"node_modules/angular2/ts/src/core/debug/debug_renderer"

"node_modules/angular2/ts/src/core/debug/debug_renderer":

DebugDomRenderer

DebugDomRenderer:

constructor

_delegate

_delegate: Renderer

_rootRenderer

_rootRenderer: DebugDomRootRenderer

attachViewAfter

  • attachViewAfter(node: any, viewRootNodes: any[]): any
  • Parameters

    • node: any
    • viewRootNodes: any[]

    Returns any

createElement

  • createElement(parentElement: any, name: string): any
  • Parameters

    • parentElement: any
    • name: string

    Returns any

createTemplateAnchor

  • createTemplateAnchor(parentElement: any): any
  • Parameters

    • parentElement: any

    Returns any

createText

  • createText(parentElement: any, value: string): any
  • Parameters

    • parentElement: any
    • value: string

    Returns any

createViewRoot

  • createViewRoot(hostElement: any): any
  • Parameters

    • hostElement: any

    Returns any

destroyView

  • destroyView(hostElement: any, viewAllNodes: any[]): any
  • Parameters

    • hostElement: any
    • viewAllNodes: any[]

    Returns any

detachView

  • detachView(viewRootNodes: any[]): any
  • Parameters

    • viewRootNodes: any[]

    Returns any

invokeElementMethod

  • invokeElementMethod(renderElement: any, methodName: string, args: any[]): any
  • Parameters

    • renderElement: any
    • methodName: string
    • args: any[]

    Returns any

listen

  • listen(renderElement: any, name: string, callback: Function): Function
  • Parameters

    • renderElement: any
    • name: string
    • callback: Function

    Returns Function

listenGlobal

  • listenGlobal(target: string, name: string, callback: Function): Function
  • Parameters

    • target: string
    • name: string
    • callback: Function

    Returns Function

projectNodes

  • projectNodes(parentElement: any, nodes: any[]): any
  • Parameters

    • parentElement: any
    • nodes: any[]

    Returns any

renderComponent

  • renderComponent(componentType: RenderComponentType): Renderer
  • Parameters

    • componentType: RenderComponentType

    Returns Renderer

selectRootElement

  • selectRootElement(selector: string): any
  • Parameters

    • selector: string

    Returns any

setBindingDebugInfo

  • setBindingDebugInfo(renderElement: any, propertyName: string, propertyValue: string): any
  • Used only in debug mode to serialize property changes to comment nodes, such as